Payment methods
Autorizações
Parâmetros de rota
idstringObrigatório
Respostas
200
OK
application/json
404
PaymentMethod was not found
application/json
500
An internal server error was thrown
application/json
get
GET /api/sales/payment-methods/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
"id": "text",
"name": "text",
"type": "CREDIT_CARD",
"minimum_value": 1,
"maximum_value": 1,
"active": true,
"provider": {
"id": "text",
"vendor": "text",
"image": "text",
"access_key": "text",
"secret_key": "text",
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
},
"adjustment_rate": 1,
"minimum_installment_value": 1,
"installments": [
{
"id": "text",
"payment_method_id": "text",
"sequence": 1,
"installment_id": "text",
"tax": 1,
"discount": 1
}
],
"vendor": "text",
"attributes": {
"ANY_ADDITIONAL_PROPERTY": {}
}
}
Autorizações
Parâmetros de rota
idstringObrigatório
Corpo
namestringObrigatório
typestringOpcional
minimum_valuenumberOpcional
maximum_valuenumberOpcional
activebooleanOpcional
adjustment_ratenumberOpcional
minimum_installment_valuenumberOpcional
Respostas
200
PaymentMethod 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/payment-methods/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 379
{
"name": "text",
"type": "text",
"minimum_value": 1,
"maximum_value": 1,
"active": true,
"adjustment_rate": 1,
"minimum_installment_value": 1,
"provider": {
"vendor": "text",
"access_key": "text",
"secret_key": "text",
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
},
"installments": [
{
"id": "text",
"sequence": 1,
"installment_id": "text",
"tax": 1,
"discount": 1
}
],
"attributes": {
"ANY_ADDITIONAL_PROPERTY": {}
}
}
{
"id": "text",
"name": "text",
"type": "CREDIT_CARD",
"minimum_value": 1,
"maximum_value": 1,
"active": true,
"provider": {
"id": "text",
"vendor": "text",
"image": "text",
"access_key": "text",
"secret_key": "text",
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
},
"adjustment_rate": 1,
"minimum_installment_value": 1,
"installments": [
{
"id": "text",
"payment_method_id": "text",
"sequence": 1,
"installment_id": "text",
"tax": 1,
"discount": 1
}
],
"attributes": {
"ANY_ADDITIONAL_PROPERTY": {}
}
}
Autorizações
Parâmetros de rota
idstringObrigatório
Respostas
204
PaymentMethod removed successfully
application/json
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
delete
DELETE /api/sales/payment-methods/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
"id": "text"
}
Autorizações
Parâmetros de consulta
searchstringOpcionalDefault:
""
pageinteger · int32OpcionalDefault:
0
perPageinteger · int32OpcionalDefault:
25
sortstringOpcionalDefault:
""
dirstringOpcionalDefault:
asc
only_activebooleanOpcional
Respostas
200
OK
application/json
404
PaymentMethod was not found
application/json
500
An internal server error was thrown
application/json
get
GET /api/sales/payment-methods HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
"currentPage": 1,
"perPage": 1,
"total": 1,
"items": [
{
"id": "text",
"name": "text",
"type": "CREDIT_CARD",
"minimum_value": 1,
"maximum_value": 1,
"active": true,
"adjustment_rate": 1,
"minimum_installment_value": 1,
"vendor": "text",
"attributes": {
"ANY_ADDITIONAL_PROPERTY": {}
}
}
]
}
Autorizações
Corpo
idstringOpcional
namestringObrigatório
typestringOpcional
minimum_valuenumberOpcional
maximum_valuenumberOpcional
activebooleanOpcional
adjustment_ratenumberOpcional
minimum_installment_valuenumberOpcional
Respostas
201
PaymentMethod 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/payment-methods HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 379
{
"id": "text",
"name": "text",
"type": "text",
"minimum_value": 1,
"maximum_value": 1,
"active": true,
"adjustment_rate": 1,
"minimum_installment_value": 1,
"provider": {
"vendor": "text",
"access_key": "text",
"secret_key": "text",
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
},
"installments": [
{
"sequence": 1,
"installment_id": "text",
"tax": 1,
"discount": 1
}
],
"attributes": {
"ANY_ADDITIONAL_PROPERTY": {}
}
}
{
"id": "text",
"name": "text",
"type": "CREDIT_CARD",
"minimum_value": 1,
"maximum_value": 1,
"active": true,
"provider": {
"id": "text",
"vendor": "text",
"image": "text",
"access_key": "text",
"secret_key": "text",
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
},
"adjustment_rate": 1,
"minimum_installment_value": 1,
"installments": [
{
"id": "text",
"payment_method_id": "text",
"sequence": 1,
"installment_id": "text",
"tax": 1,
"discount": 1
}
],
"attributes": {
"ANY_ADDITIONAL_PROPERTY": {}
}
}