MDRUGB

Request

API reference / General provisions / Request

Each request consists of several objects:

- connect

- object1

- object2
...

The connect object is required and is present in every request.

{
    "connect": {
    "client": "{{ client_token }}",
    "token": "{{ access_token }}",
    "language": "ro-RO"
  },
 ...
}

See the Authentication section for details.

Other objects depend on the purpose of the requests. See sections:

Invoices for payment

Payers


Example of an invoice/order request:

{
  "connect": {
    "client": "{{ client_token }}",
    "token": "{{ access_token }}",
    "language": "ro-RO"
  },
  "order": {
    "id": 4365,
    "order_number": "4365",
    "amount": "554.30",
    "currency": "MDL",
    "date_created": "2022-11-22 13:30:52",
    "status": "pending",
    "customer_note": "Notes from customer...",
    "billing": {
      "company": "MyCompany",
      "first_name": "John",
      "last_name": "Smith",
      "address_1": "Stefan cel Mare 180",
      "address_2": "Floor 3",
      "city": "Chisinau",
      "postcode": "MD2001",
      "country": "MD",
      "email": "john.smith@gmail.com",
      "phone": "+37379123456"
    }
  },
  "items": {
    "984": {
      "product_id": 1728,
      "product_sku": "ADPT-EN",
      "product_name": "Adaptor priza UK, ADPT-EN",
      "product_price": "8",
      "product_qnt": 1,
      "product_unit": "pcs",
      "line_total": "8"
    },
    "991": {
      "product_id": 2865,
      "product_sku": "T144D",
      "product_name": "Set de 5 panze de ferastrau, Alluse, T144D",
      "product_price": "30",
      "product_qnt": 2,
      "product_unit": "pcs",
      "line_total": "60"
    }
  }
}
Changed: 08.04.2023 02:51