POST
/
suppliers
/
{id}
/
payment-methods
cURL
curl --request POST \
  --url https://api.daraa.io/suppliers/{id}/payment-methods \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 123,
  "supplierId": "<string>",
  "name": "<string>",
  "type": 0,
  "data": {},
  "currency": {
    "id": 123,
    "name": "<string>",
    "description": "<string>",
    "rate": "<string>",
    "base": true,
    "active": true
  },
  "isActive": true
}'
{
  "id": 123,
  "supplierId": "<string>",
  "name": "<string>",
  "type": 0,
  "data": {},
  "currency": {
    "id": 123,
    "name": "<string>",
    "description": "<string>",
    "rate": "<string>",
    "base": true,
    "active": true
  },
  "isActive": true
}

Path Parameters

id
string
required

Body

application/json
id
number
required

Unique identifier for the payment method

supplierId
string
required

ID of the supplier

name
string
required

Payment method name

type
enum<number>
required

Payment method type: 0=OTHER, 1=CHECK, 2=ACH, 3=EFT, 4=WIRE

Available options:
0,
1,
2,
3,
4
currency
object
required
isActive
boolean
required

Whether payment method is active

data
object

Payment method specific data

Response

200 - application/json

Ok

id
number
required

Unique identifier for the payment method

supplierId
string
required

ID of the supplier

name
string
required

Payment method name

type
enum<number>
required

Payment method type: 0=OTHER, 1=CHECK, 2=ACH, 3=EFT, 4=WIRE

Available options:
0,
1,
2,
3,
4
currency
object
required
isActive
boolean
required

Whether payment method is active

data
object

Payment method specific data