BillingPaymentsCrypto
BillingPaymentsCrypto
  • Introduction
    • 👋 Welcome
    • ▶️ What you need to operate
    • 🔑 Sandbox environment credentials
    • 🔧 Postman Collection
  • About us
    • 🌐 About us
    • ✨ Use cases
    • 🛡️ Security and data ownership
    • 💲 Pricing
  • Examples by country
  • API Reference
  • Webhooks
LogoLogo
API Reference🔢document Types

PATCH
https://api-billing.koywe.com/V1/document_types/:document_type_id
PATCH
/V1/document_types/:document_type_id
1curl -X PATCH https://api-billing.koywe.com/V1/document_types/document_type_id \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "last_sequence_number": 1
6}'
Try it
201Created
1{
2 "document_type_id": 1,
3 "name": "string",
4 "last_sequence_number": 1,
5 "active_user": 1,
6 "active_system": 1,
7 "received_issued_flag": 1,
8 "charge_credit_flag": 1
9}
Was this page helpful?
Previous

Lists all customers/suppliers

Next
Built with
Update a document type

Authentication

AuthorizationBearer
Bearer authentication of the form `Bearer <token>`, where token is your auth token.

Path parameters

document_type_idstringRequired

Request

This endpoint expects an object.
last_sequence_numberintegerRequired
Add the last_sequence_number with which you will start issuing.

Response

Your document type is successfully updated.
document_type_idinteger or null
Returns the ID of the document that was updated.
namestring or null
Returns the name of the document that was updated.
last_sequence_numberinteger or null
Returns the number of the document that was updated.
active_userinteger or null

Returns if the user is active to use the document that was updated.
1 = Enabled
0 = Disabled

active_systeminteger or null

Returns whether the system allows using the document that was updated.
1 = Enabled
0 = Disabled

received_issued_flaginteger or null

Returns whether the document type is issued or received.
1 = Issued
0 = Received

charge_credit_flaginteger or null
Returns whether the document type is a charge or a credit.\ 1 = Charge\ 0 = Credit

Errors

Returns whether the document type is a charge or a credit.
1 = Charge
0 = Credit

Bearer authentication of the form Bearer <token>, where token is your auth token.

Lists all customers/suppliers

Add the last_sequence_number with which you will start issuing.