CreateTransaction
POST
/Api/CreateTransaction
Api
Last modified:2025-04-17 20:59:21
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
orderId
string | null
required
>= 1 characters<= 256 characters
Example:
ShopX-001
shopOrderId
string | null
optional
Example:
332837882
orderDetails
object (OrderDetails)
optional
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
parcel
object (Parcel)
optional
shopOrderId
string | null
optional
>= 0 characters<= 265 characters
Example:
2128721
preferredShippingMethod
string | null
optional
>= 0 characters<= 265 characters
Example:
DHL
customerLocale
string | null
optional
>= 5 characters<= 5 characters
Example:
nl_NL
orderCountry
string
required
>= 2 characters<= 256 characters
Example:
NL
consumerEmail
string | null
optional
>= 0 characters<= 256 characters
Example:
rey@dooo.com
locale
string | null
optional
>= 0 characters<= 256 characters
Example:
en_US
carrierId
integer <int32>
required
>= 1<= 3
Example:
1
testMode
boolean
optional
Example:
true
orderlines
array[object (OrderLine) {10}] | null
optional
name
string
required
>= 1 characters
Example:
43" FHD Smart TV
productId
integer <int32>
optional
Example:
13882
sku
string
required
>= 1 characters
Example:
FN43GE320
quantity
number <double>
required
Example:
1
weight
number <double>
required
Example:
1
tax
number <double>
optional
Example:
1
pricePerItem
number <double>
required
Example:
10
totalPrice
number <double>
required
Example:
10
countryOfOrigin
string | null
optional
>= 0 characters<= 265 characters
Example:
NL
hsCode
string | null
optional
>= 0 characters<= 265 characters
Example:
NL
Example
{
"amount": 20.27,
"orderId": "ShopX-001",
"shopOrderId": "332837882",
"orderDetails": {
"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,
"parcel": {
"shopName": "string",
"shopOrderNumber": "string",
"shopOrderId": "string",
"eori": "string",
"destinationAddress": {
"contactFirstName": "Reyhan",
"contactLastName": "Savvy",
"contactCompany": null,
"vatNumber": null,
"contactEmail": "rey@dooo.com",
"contactPhone": "+316777298172",
"address1": "Max Euweplein",
"address2": null,
"houseNumber": "6",
"zipcode": "1017 MB",
"city": "Amsterdam",
"state": null,
"country": "NL"
},
"billingAddress": {
"contactFirstName": "Reyhan",
"contactLastName": "Savvy",
"contactCompany": null,
"vatNumber": null,
"contactEmail": "rey@dooo.com",
"contactPhone": "+316777298172",
"address1": "Max Euweplein",
"address2": null,
"houseNumber": "6",
"zipcode": "1017 MB",
"city": "Amsterdam",
"state": null,
"country": "NL"
}
},
"shopOrderId": "2128721",
"preferredShippingMethod": "DHL",
"customerLocale": "nl_NL"
},
"orderCountry": "NL",
"consumerEmail": "rey@dooo.com",
"locale": "en_US",
"carrierId": 1,
"testMode": true,
"orderlines": [
{
"name": "43\" FHD Smart TV",
"productId": 13882,
"sku": "FN43GE320",
"quantity": 1,
"weight": 1,
"tax": 1,
"pricePerItem": 10,
"totalPrice": 10,
"countryOfOrigin": "NL",
"hsCode": "NL"
}
]
}
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/CreateTransaction' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 20.27,
"orderId": "ShopX-001",
"shopOrderId": "332837882",
"orderDetails": {
"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,
"parcel": {
"shopName": "string",
"shopOrderNumber": "string",
"shopOrderId": "string",
"eori": "string",
"destinationAddress": {
"contactFirstName": "Reyhan",
"contactLastName": "Savvy",
"contactCompany": null,
"vatNumber": null,
"contactEmail": "rey@dooo.com",
"contactPhone": "+316777298172",
"address1": "Max Euweplein",
"address2": null,
"houseNumber": "6",
"zipcode": "1017 MB",
"city": "Amsterdam",
"state": null,
"country": "NL"
},
"billingAddress": {
"contactFirstName": "Reyhan",
"contactLastName": "Savvy",
"contactCompany": null,
"vatNumber": null,
"contactEmail": "rey@dooo.com",
"contactPhone": "+316777298172",
"address1": "Max Euweplein",
"address2": null,
"houseNumber": "6",
"zipcode": "1017 MB",
"city": "Amsterdam",
"state": null,
"country": "NL"
}
},
"shopOrderId": "2128721",
"preferredShippingMethod": "DHL",
"customerLocale": "nl_NL"
},
"orderCountry": "NL",
"consumerEmail": "rey@dooo.com",
"locale": "en_US",
"carrierId": 1,
"testMode": true,
"orderlines": [
{
"name": "43\" FHD Smart TV",
"productId": 13882,
"sku": "FN43GE320",
"quantity": 1,
"weight": 1,
"tax": 1,
"pricePerItem": 10,
"totalPrice": 10,
"countryOfOrigin": "NL",
"hsCode": "NL"
}
]
}'
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-04-17 20:59:21