AddOrderData (for statistics and insights)
POST
/Api/AddOrderData
Api
Last modified:2025-06-06 13:43:09
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
Required when creating a new payment transaction (IPAY QR-CODE)
amount
number <double>
required
>= 1
Example:
20.27
orderDetails
object (OrderDetails)
required
orderId
string | null
required
>= 1 characters<= 256 characters
Example:
ShopX-001
firstName
string
required
>= 1 characters<= 256 characters
Example:
Reyhan
lastName
string
required
>= 1 characters<= 256 characters
Example:
Savvy
email
string | null
optional
>= 0 characters<= 256 characters
Example:
rey@dooo.com
phoneNumber
string | null
optional
>= 0 characters<= 50 characters
Example:
+316777298172
company
string | null
optional
>= 0 characters<= 256 characters
Example:
null
vatNumber
string | null
optional
>= 0 characters<= 256 characters
Example:
null
address1
string
required
>= 2 characters<= 256 characters
Example:
Max Euweplein
address2
string | null
optional
>= 0 characters<= 256 characters
Example:
null
houseNumber
string
required
>= 1 characters<= 25 characters
Example:
6
zipcode
string
required
>= 2 characters<= 10 characters
Example:
1017 MB
city
string
required
>= 2 characters<= 265 characters
Example:
Amsterdam
country
string
required
>= 2 characters<= 256 characters
Example:
NL
reference
string | null
optional
>= 0 characters<= 256 characters
Example:
MyRefInMyWMS99282
state
string | null
optional
>= 0 characters<= 265 characters
Example:
null
province
string | null
optional
>= 0 characters<= 265 characters
Example:
null
region
string | null
optional
>= 0 characters<= 265 characters
Example:
null
shopOrderId
string | null
optional
>= 0 characters<= 265 characters
Example:
2128721
orderlines
array[object (OrderLine) {10}] | null
required
preferredShippingMethod
string | null
optional
>= 0 characters<= 265 characters
Example:
DHL
customerLocale
string | null
optional
>= 5 characters<= 5 characters
Example:
nl_NL
carrierId
integer <int32> | null
optional
>= 1<= 4
Example:
1
Example
{
"amount": 20.27,
"orderDetails": {
"orderId": "ShopX-001",
"firstName": "Reyhan",
"lastName": "Savvy",
"email": "rey@dooo.com",
"phoneNumber": "+316777298172",
"company": null,
"vatNumber": null,
"address1": "Max Euweplein",
"address2": null,
"houseNumber": "6",
"zipcode": "1017 MB",
"city": "Amsterdam",
"country": "NL",
"reference": "MyRefInMyWMS99282",
"state": null,
"province": null,
"region": null,
"shopOrderId": "2128721",
"orderlines": [
{
"name": "43\" FHD Smart TV",
"productId": 13882,
"sku": "FN43GE320",
"quantity": 1,
"weight": 1,
"tax": 1,
"pricePerItem": 10,
"totalPrice": 10,
"countryOfOrigin": "NL",
"hsCode": "NL"
}
],
"preferredShippingMethod": "DHL",
"customerLocale": "nl_NL"
},
"carrierId": 1
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.ipay-solutions.com/Api/AddOrderData' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 20.27,
"orderDetails": {
"orderId": "ShopX-001",
"firstName": "Reyhan",
"lastName": "Savvy",
"email": "rey@dooo.com",
"phoneNumber": "+316777298172",
"company": null,
"vatNumber": null,
"address1": "Max Euweplein",
"address2": null,
"houseNumber": "6",
"zipcode": "1017 MB",
"city": "Amsterdam",
"country": "NL",
"reference": "MyRefInMyWMS99282",
"state": null,
"province": null,
"region": null,
"shopOrderId": "2128721",
"orderlines": [
{
"name": "43\" FHD Smart TV",
"productId": 13882,
"sku": "FN43GE320",
"quantity": 1,
"weight": 1,
"tax": 1,
"pricePerItem": 10,
"totalPrice": 10,
"countryOfOrigin": "NL",
"hsCode": "NL"
}
],
"preferredShippingMethod": "DHL",
"customerLocale": "nl_NL"
},
"carrierId": 1
}'
Responses
🟢200OK
text/plain
Body
traceId
string <uuid>
read-onlyoptional
succeeded
boolean
read-onlyoptional
errors
array[object (ServiceError) {2}] | null
read-onlyoptional
that occurred during the identity operation.
code
string | null
optional
description
string | null
optional
warnings
array[object (ServiceError) {2}] | null
read-onlyoptional
code
string | null
optional
description
string | null
optional
Example
{
"traceId": "729bb1bf-882d-483b-89d3-5855dc5af3aa",
"succeeded": true,
"errors": [
{
"code": "string",
"description": "string"
}
],
"warnings": [
{
"code": "string",
"description": "string"
}
]
}
Modified at 2025-06-06 13:43:09