Payments
Autorizações
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
GET /api/sales/orders/{order_id}/payments/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
"id": "text",
"order_id": "text",
"payment_method_id": "text",
"amount": 1,
"installments": 1
}
Autorizações
Parâmetros de rota
order_idstringObrigatório
idstringObrigatório
Corpo
payment_method_idstringObrigatório
amountnumberObrigatório
installmentsinteger · int32Obrigató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
PUT /api/sales/orders/{order_id}/payments/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
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
Parâmetros de rota
order_idstringObrigatório
idstringObrigatório
Respostas
204
Payment removed successfully
application/json
422
A validation error was thrown
500
An internal server error was thrown
delete
DELETE /api/sales/orders/{order_id}/payments/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
"id": "text"
}
Autorizações
Parâmetros de rota
order_idstringObrigatório
Parâmetros de consulta
searchstringOpcionalDefault:
""
pageinteger · int32OpcionalDefault:
0
perPageinteger · int32OpcionalDefault:
25
sortstringOpcionalDefault:
""
dirstringOpcionalDefault:
asc
Respostas
200
OK
application/json
404
Payment was not found
application/json
500
An internal server error was thrown
application/json
get
GET /api/sales/orders/{order_id}/payments HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
"id": "text",
"order_id": "text",
"payment_method_id": "text",
"amount": 1,
"installments": 1
}
Autorizações
Parâmetros de rota
order_idstringObrigatório
Corpo
idstringOpcional
payment_method_idstringObrigatório
amountnumberObrigatório
installmentsinteger · int32Obrigatório
installment_idstringOpcional
transaction_idstringOpcional
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
POST /api/sales/orders/{order_id}/payments HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 116
{
"id": "text",
"payment_method_id": "text",
"amount": 1,
"installments": 1,
"installment_id": "text",
"transaction_id": "text"
}
{
"id": "text",
"order_id": "text",
"payment_method_id": "text",
"amount": 1,
"installments": 1
}