Skip to main content
Skip to main content

SwapsResource

swaps.SwapsResource

Methods

create

create(payload, customHeaders?): ResponsePromise<StoreSwapsRes>

Parameters

payloadStorePostSwapsReqRequired
customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<StoreSwapsRes>

ResponsePromiseResponsePromise<StoreSwapsRes>Required

Description

Creates a swap from a cart


retrieveByCartId

retrieveByCartId(cart_id, customHeaders?): ResponsePromise<StoreSwapsRes>

Parameters

cart_idstringRequired
id of cart
customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<StoreSwapsRes>

ResponsePromiseResponsePromise<StoreSwapsRes>Required

Description

Retrieves a swap by cart id

Was this section helpful?