Create Invoice

This API is used to create orders for customers

POST https://wallet-api.xaigate.com/api/v1/invoice/create

Parameter content type: application/json

Request Body

NameTypeDescription

apiKey*

String

fdda9f03-6409-43eb-a6ef-e1f6cea71c2e

orderId*

String

10

currency*

Stirng

USD

amount*

String

10

email*

String

examplate@hotmail.com

shopName

String

My Store

notifyUrl

String

http://yourdomain.com/notify-url

failUrl

String

http://yourdomain.com/fail-url

successUrl

String

http://yourdomain.com/success-url

description

String

3 Coffee

{
    "name"="Wilson",
    "owner": {
        "id": "sha7891bikojbkreuy",
        "name": "Samuel Passet",
    "species": "Dog",}
    "breed": "Golden Retriever",
}

Request Parameter

Parameter

Type

Sample Value

apiKey (required)

String

orderId (required)

String

amount (required)

String

currency (required)

String

​USD, EUR

email (required)

String

shopName

String

description

String

successUrl

String

failUrl

String

notifyUrl

String

Example Value

{
  "apiKey": "fdda9f03-6409-43eb-a6ef-e1f6cea71c2e",
  "shopName": "My Store",
  "amount": 10,
  "currency": "USD",
  "orderId": "1",
  "email": "examplate@hotmail.com",
  "successUrl": "http://yourdomain.com/success-url",
  "failUrl": "http://yourdomain.com/fail-url",
  "notifyUrl": "http://yourdomain.com/notify-url",
  "description": "3 Coffee"
}

Response (200 Ok - https status code)

Response

Type

Sample Value

invoiceNo

String

amount

String

paidAmount

String

toEmail

String

toName

String

expiry

Int

default: 60 mins

description

String

status

String

Pending

payUrl

String

https://wallet.xaigate.com/pay/INV2167234232?lang=en

currency

String

USD

shopName

String

orderId

String

createdAt

String

updatedAt

String

Example Value

{
  "invoiceNo": "INV2167234232",
  "amount": "10",
  "paidAmount": "0",
  "toEmail": "example@hotmail.com",
  "toName": "My Store",
  "expiry": 60,
  "description": "3 Coffee",
  "status": "Pending",
  "payUrl": "https://wallet.xaigate.com/pay/INV2167234232?lang=en",
  "currency": "USD",
  "shopName": "My Store",
  "orderId": 10,
  "createdAt": "2023-12-07T09:03:07.976520Z",
  "updatedAt": "2023-12-07T09:03:07.976523Z"
  ....
}

Last updated