Payments
Autorizações
AuthorizationstringObrigatório
Bearer authentication header of the form Bearer <token>.
Parâmetros de rota
order_idstringObrigatório
idstringObrigatório
Respostas
200
OK
application/json
404
Payment was not found
application/json
500
An internal server error was thrown
application/json
get
/orders/{order_id}/payments/{id}GET /api/sales/orders/{order_id}/payments/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"order_id": "text",
"payment_method_id": "text",
"amount": 1,
"installments": 1
}Autorizações
AuthorizationstringObrigatório
Bearer authentication header of the form Bearer <token>.
Parâmetros de rota
order_idstringObrigatório
idstringObrigatório
Corpo
payment_method_idstringObrigatório
amountnumberObrigatório
installmentsnumberObrigatório
Respostas
200
Payment updated successfully
application/json
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
put
/orders/{order_id}/payments/{id}PUT /api/sales/orders/{order_id}/payments/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"payment_method_id": "text",
"amount": 1,
"installments": 1
}{
"id": "text",
"order_id": "text",
"payment_method_id": "text",
"amount": 1,
"installments": 1
}Autorizações
AuthorizationstringObrigatório
Bearer authentication header of the form Bearer <token>.
Parâmetros de rota
order_idstringObrigatório
idstringObrigatório
Respostas
204
Payment removed successfully
application/json
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
delete
/orders/{order_id}/payments/{id}DELETE /api/sales/orders/{order_id}/payments/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text"
}Autorizações
AuthorizationstringObrigatório
Bearer authentication header of the form Bearer <token>.
Parâmetros de rota
order_idstringObrigatório
Parâmetros de consulta
searchstringOpcionalDefault:
""pageinteger · int32OpcionalDefault:
0perPageinteger · int32OpcionalDefault:
25sortstringOpcionalDefault:
""dirstringOpcionalDefault:
ascRespostas
200
OK
application/json
404
Payment was not found
application/json
500
An internal server error was thrown
application/json
get
/orders/{order_id}/paymentsGET /api/sales/orders/{order_id}/payments HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"order_id": "text",
"payment_method_id": "text",
"amount": 1,
"installments": 1
}Autorizações
AuthorizationstringObrigatório
Bearer authentication header of the form Bearer <token>.
Parâmetros de rota
order_idstringObrigatório
Corpo
idstringOpcional
payment_method_idstringObrigatório
amountnumberObrigatório
installmentsnumberObrigatório
Respostas
201
Payment created successfully
application/json
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
post
/orders/{order_id}/paymentsPOST /api/sales/orders/{order_id}/payments HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 68
{
"id": "text",
"payment_method_id": "text",
"amount": 1,
"installments": 1
}{
"id": "text",
"order_id": "text",
"payment_method_id": "text",
"amount": 1,
"installments": 1
}