API reference · Credit Limit
Create Credit Limit Type
https://api.sandbox.cws.digital/creditLimit/saveTypeCreditLimitDescription
Creates a credit limit type of your store, which is later associated with the customers in Set or Update Credit Limit for Customer.
The type represents your store's credit modality — for example, À Vista, Boleto 30 dias or Crédito Especial.
Request body
application/jsonRequired| Field | Type | Required | Description | Value |
|---|---|---|---|---|
| name | string | Yes | Name of the type, as it appears to the operations team. Up to 50 characters. | |
| code | string | Yes | Code of the type, unique in your store, with up to 18 characters. It is the value you send in |
Business rules
A repeated code updates the name
Resending a code that already exists in your store updates the type's name and responds 200 with the type. The date_created stays the one of the creation.
The type belongs to your store
The code is unique in your store. Another store can use the same code without affecting your type.
Responses
- 401
Missing, malformed or expired token.