Follow the question structure recommended by Dev Bot before submitting your integration questions.
NOTE. Available for use with branch access key and also with General ADM access key.
| Field | Type | Required | Description |
|---|---|---|---|
| idBranch | int32 | Situational | ID of the branch where the cart will be created. |
| idBranchToken | string | Situational | Identifier token of the branch where the cart will be created. |
| idMember | int32 | Situational | ID of the member linked to the cart. Required if the user is already enrolled. |
| idProspect | int32 | Situational | ID of the prospect linked to the cart. Used for visitors or leads. |
| voucher | string | No | Discount code to be applied to the final value of the cart. |
| cartCheckoutLink | string | No | Direct URL for the cart checkout process. |
| items | array | Yes | List of items to be included in the cart. Each item can be a membership idMembership or a service idService. |
items ObjectidMember or idProspect must be provided. Additionally, each item must contain either an idMembership or an idService.| Field | Type | Required | Description |
|---|---|---|---|
| idMembership | int32 | Situational | ID of the membership to be included. |
| idService | int32 | Situational | ID of the service to be included. |
{
"idBranch": "123",
"idMember": 1010,
"idProspect": 0,
"voucher": "PROMOACADEMIA",
"items": [
{
"idMembership": 2001,
"idService": 0
}
]
}| Field | Type | Description |
|---|---|---|
| idCartToken | string | Unique token of the created cart. Can be used later for retrieval. |
| cartCheckoutLink | string | Direct URL for the cart checkout process. |