Skip to content
Carts & CheckoutCarts

Upload cart payment receipt

Uploads the receipt in the file field and returns its ID and URL.

POST/v1/carts/{cartToken}/payment-receipt
No token

Path Parameters

cartToken*string

Token that identifies the cart.

Header Parameters

x-Store-Domain*string

Slug of the store or one of its configured domains, such as my-store.

Length1 <= length <= 253
X-Customer-Session?string

Customer session from POST /v1/customer/sessions. Links the cart to the customer, with their prices and assigned codes.

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://storefront.ecomiq.pe/v1/carts/replace_with_the_issued_token/payment-receipt" \  -H "x-Store-Domain: my-store" \  -H "X-Customer-Session: <session-id>" \  -F file="@./comprobante-pago.pdf"
{  "id": "7204558912004325176",  "url": "https://mi-tienda.ecomiq.app/products/polo-de-algodon"}