POST /carts/{cart_id}/metafields
Create a cart Metafield.
If you create an order from a Cart, you can continue referencing the Cart Metafields even if you delete the original Cart. Use the cart_id field on the Order to construct the Cart Metafield endpoint.
Servers
- https://api.bigcommerce.com/stores/{store_hash}/v3
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
cart_id |
String | Yes |
The ID of the |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Accept |
String | Yes |
The MIME type of the response body. Default value: "application/json" |
Content-Type |
String | Yes |
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
namespace |
String | Yes |
Namespace for the metafield, for organizational purposes. |
||||||||||||
description |
String | No |
Description for the metafields. |
||||||||||||
key |
String | Yes |
The name of the field, for example: |
||||||||||||
permission_set |
String | Yes |
Determines the visibility and writeability of the field by other API consumers.
Valid values:
|
||||||||||||
value |
String | Yes |
The value of the field, for example: |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.