UseDocumentation Index
Fetch the complete documentation index at: https://docs.atriby.com/llms.txt
Use this file to discover all available pages before exploring further.
PATCH /api/v1/orders/{externalId} quando o status ou dados permitidos de um pedido mudarem.
Status aceitos
pendingpaidrefusedrefundedchargedback
approved,completed,concluido,pago->paidwaiting_payment,pendente->pendingrejected,failed,cancelled,recusado->refusedrefund,reembolsado,estornado->refundedchargeback,charged_back,dispute->chargedback
Transições válidas
| De | Para |
|---|---|
pending | pending, paid, refused, refunded |
paid | paid, refunded, chargedback |
refunded | refunded, chargedback |
refused | refused |
chargedback | chargedback |
refused e chargedback são terminais.
Payload para marcar como pago
Campos permitidos no PATCH
statuspaidAtrefundedAtchargedbackAtisTestamountscustomertrackingtrackingExtrasmetadata
externalId, platform, paymentMethod, createdAt, products e fees não são atualizados por PATCH.
Exemplo curl
Erros
ORDER_NOT_FOUND: pedido não existe no dashboard autenticado.INVALID_STATUS_TRANSITION: transição de status inválida.VALIDATION_FAILED: payload inválido.UNAUTHORIZEDouTOKEN_REVOKED: problema no token.