Set the order source
PUT/order-source
Registers your application as an order source, or changes it. Each application has one source per merchant. Send it once per merchant, before the first POST /orders.
Behaviour
- The first call answers
201; a later call answers200and can changedisplay_nameat any time. - It works for the whole merchant, so it needs no
X-Outlet-ID, noX-User-IDand noIdempotency-Key: sending the same body again changes nothing. - The first call also creates the payment method that POS records your paid orders on, named
Paid on <display_name>. - The merchant does not see it in the payment method list, and it does not use one of the merchant's custom payment method places.
Errors
| Status | Code | When |
|---|---|---|
| 400 | VALIDATION_FAILED | source_code or display_name is missing or invalid, or source_code is a reserved word. |
| 401 | COMPANY_NOT_FOUND | The company is not found. |
| 403 | PLAN_FEATURE_REQUIRED | The merchant's plan does not include the Public API add-on. This answer has no data. |
| 403 | SUBSCRIPTION_EXPIRED | The subscription has expired. |
| 409 | SOURCE_CODE_TAKEN | Another application of the same merchant uses this source_code. |
| 409 | SOURCE_CODE_LOCKED | The source already has an order, so its source_code can no longer change. |
Request
Responses
- 200
- 201
- 400
- 401
- 403
- 409
The source already existed and was updated; same body as 201.
The source was created.
Error envelope
Error envelope
Error envelope
Error envelope