Skip to content

Instantly share code, notes, and snippets.

@carlosvazquez
Last active March 27, 2018 20:59
Show Gist options
  • Save carlosvazquez/b82813cd9497a6a17eee6a62899572f4 to your computer and use it in GitHub Desktop.
Save carlosvazquez/b82813cd9497a6a17eee6a62899572f4 to your computer and use it in GitHub Desktop.
El endpoint a donde debe de pegar tu petición es a este: 'POST /v1/orders/{id}/fulfillments'
Suponiendo que tu tienda se llame store1.kometia.test
Donde 'ord_cjf09ebeo0000hxl3s20c300v' es el número de la orden.
Debera de quedar así https://store1.kometia.test/api/v1/orders/ord_cjf09ebeo0000hxl3s20c300v/fulfillments
No olvides usar tu llave privada.
Ejemplos en postman:
curl -X POST \
https://store1.kometia.test/api/v1/orders/ord_cjf09ebeo0000hxl3s20c300v/fulfillments \
-H 'Authorization: Bearer sk_R2Wv7elDBaEsL8Yb90k2N0mIQpUBc' \
-H 'Cache-Control: no-cache' \
-H 'Channel-Key: chn_cjf1ffmqp0000udl3tx3uji1e' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: e33f6c51-f034-4a6a-9cf1-d2d21398bcf9' \
-d '
{
"tracking_code": "12345678",
"carrier": "UPS",
"items": [
{
"id": "itm_cjfa4n9ei0000akl3yoc55m16",
"quantity": 1
}
]
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment