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📦customers Suppliers

PUT
https://api-billing.koywe.com/V1/customers_suppliers/:customer_supplier_id
PUT
/V1/customers_suppliers/:customer_supplier_id
1curl -X PUT https://api-billing.koywe.com/V1/customers_suppliers/customer_supplier_id \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "account_id": 1,
6 "name": "string"
7}'
Try it
200Updated
1{
2 "account_id": 1,
3 "customer_supplier_id": 1,
4 "name": "string",
5 "is_customer": true,
6 "is_supplier": true,
7 "responsible_user_id": 1,
8 "payment_term": "0,30",
9 "contacts": [
10 {
11 "customer_supplier_contact_id": 1,
12 "first_name": "string",
13 "last_name": "string",
14 "phone": "string",
15 "email": "string"
16 }
17 ],
18 "invoicing_details": [
19 {
20 "country_id": "string",
21 "tax_id_type": "string",
22 "tax_id_code": "string",
23 "legal_name": "string",
24 "address": "string",
25 "district": "string",
26 "city": "string",
27 "business_activity": "string",
28 "phone": "string",
29 "postal_code": "string"
30 }
31 ],
32 "additional": {
33 "data_name_1": "string",
34 "data_value_1": "string",
35 "data_name_2": "string",
36 "data_value_2": "string",
37 "data_name_3": "string",
38 "data_value_3": "string",
39 "data_name_4": "string",
40 "data_value_4": "string",
41 "data_name_5": "string",
42 "data_value_5": "string"
43 }
44}
Was this page helpful?
Previous

Deletes a specific customer/supplier

Next
Built with

Authentication

AuthorizationBearer

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

Path parameters

customer_supplier_idstringRequired

Request

This endpoint expects an object.
account_idintegerRequired
Associated account.
namestringRequired
Name of the customer or supplier.
is_customerbooleanOptional
Indicates if the entity is a customer.
is_supplierbooleanOptional
Indicates if the entity is a supplier.
responsible_user_idintegerOptional
ID of the user responsible for this entity.
payment_termstringOptional
Payment terms for the customer or supplier.
contactslist of objectsOptional
List of contacts associated with the customer or supplier.
invoicing_detailslist of objectsOptional
List of invoicing details associated with the customer or supplier.
additionalobjectOptional
Additional data associated with the customer or supplier.

Response

Product updated successfully
account_idinteger
Associated account.
customer_supplier_idinteger
Unique identifier for the customer or supplier.
namestring
Name of the customer or supplier.
is_customerboolean or null
Indicates if the entity is a customer.
is_supplierboolean or null
Indicates if the entity is a supplier.
responsible_user_idinteger or null
ID of the user responsible for this entity.
payment_termstring or null
Payment terms for the customer or supplier.
contactslist of objects or null
List of contacts associated with the customer or supplier.
invoicing_detailslist of objects or null
List of invoicing details associated with the customer or supplier.
additionalobject or null
Additional data associated with the customer or supplier.

Errors

Update customer/supplier

Deletes a specific customer/supplier