Direct Communication
Direct Communication Between Shopranos Platform and Datapump: Core Functions
Core Functions Overview:
1.
Id
property representing the ID of the newly created order record in the ERP system.{
"Code": "ORD12345",
"CustomerSourceId": "100",
"lines": [
{ "ProductId": "P123", "Quantity": 2 },
...
],
"TotalAmount": 199.99
}
{
"Id": "ERP12345"
}
OrderDTO
id
string | null
optional
code
string | null
optional
companyId
string | null
optional
checkoutToken
string | null
optional
cartToken
string | null
optional
status
enum<string>
optional
Allowed values:
DraftPlacedCancelledProcessingToBeShippedShippedPartialDeliveryFailedToDeliverDeliveredRejectedCompletedAllignore
customerId
string | null
optional
customerTin
string | null
optional
customerName
string | null
optional
customerCode
string | null
optional
currency
enum<string>
optional
Allowed values:
aedafnallamdangaoaarsaudawgaznbambbdbdtbgnbhdbifbmdbndbobbovbrlbsdbtnbwpbynbzdcadcdfchechfchwclfclpcnycopcoucrccuccupcveczkdjfdkkdopdzdegpernetbeurfjdfkpgbpgelghsgipgmdgnfgtqgydhkdhnlhrkhtghufidrilsinriqdirriskjmdjodjpykeskgskhrkmfkpwkrwkwdkydkztlaklbplkrlrdlsllydmadmdlmgamkdmmkmntmopmrumurmvrmwkmxnmxvmyrmznnadngnnionoknprnzdomrpabpenpgkphppkrplnpygqarronrsdrubrwfsarsbdscrsdgseksgdshpsllsossrdsspstnsvcsypszlthbtjstmttndtoptryttdtwdtzsuahugxusdusnuyiuyuuywuzsvesvndvuvwstxafxagxauxbaxbbxbcxbdxcdxdrxofxpdxpfxptxsuxtsxuaxxxyerzarzmwzwlignore
discountRate
number <double>
optional
discountValue
number <double>
optional
totalAmount
number <double>
optional
netAmount
number <double>
optional
vatAmount
number <double>
optional
expenseAmount
number <double> | null
optional
financialStatus
enum<string>
optional
Allowed values:
PendingAuthorizedPartiallyPaidPartiallyRefundedRefundedVoided
fulfillmentStatus
enum<string>
optional
Allowed values:
FulfilledNullPartialRestocked
billingAddress
object (AddressDTO)
optional
address1
string | null
optional
>= 0 characters<= 100 characters
address2
string | null
optional
>= 0 characters<= 100 characters
firstName
string | null
optional
>= 0 characters<= 100 characters
lastName
string | null
optional
>= 0 characters<= 100 characters
city
string | null
optional
>= 0 characters<= 60 characters
state
string | null
optional
>= 0 characters<= 50 characters
country
string | null
optional
>= 0 characters<= 55 characters
countryCode
string | null
optional
postalCode
string | null
optional
>= 0 characters<= 15 characters
phoneNumber
string | null
optional
>= 0 characters<= 100 characters
email
string <email> | null
optional
>= 0 characters<= 55 characters
shippingAddress
object (AddressDTO)
optional
requiresCalculation
boolean | null
optional
lines
array[object (OrderLineDTO) {28}] | null
optional
id
string | null
optional
productId
string | null
optional
productVariantId
string | null
optional
productTitle
string | null
optional
unitId
string | null
optional
salesUnitId
string | null
optional
quantity
number <double> | null
optional
unitQuantity
number <double>
optional
netValue
number <double>
optional
price
number <double>
optional
expenseValue
number <double> | null
optional
priceValue1
number <double> | null
optional
priceValue2
number <double> | null
optional
priceValue3
number <double> | null
optional
unitPrice
number <double>
optional
lineValue
number <double>
optional
discountValue
number <double>
optional
discountRate
number <double>
optional
vatValue
number <double>
optional
vatRate
number <double>
optional
vatCode
string | null
optional
sku
string | null
optional
dimension1Caption
string | null
optional
dimension2Caption
string | null
optional
dimension3Caption
string | null
optional
dimension1Value
string | null
optional
dimension2Value
string | null
optional
dimension3Value
string | null
optional
vatAnalysis
array[object (VatAnalysisDTO) {4}] | null
optional
vatRate
number <double> | null
optional
vatAmount
number <double> | null
optional
vatCode
string | null
optional
netAmount
number <double> | null
optional
tags
array[string] | null
optional
sourceId
string | null
optional
sourceTags
array[string] | null
optional
notes
string | null
optional
updateDate
string <date-time> | null
optional
insertDate
string <date-time> | null
optional
favorite
boolean | null
optional
userId
string | null
optional
invoiceUrl
string | null
optional
notify
string | null
optional
notified
array[string] | null
optional
customFields
array[object (OrderCustomFieldDTO) {3}] | null
optional
name
string | null
optional
value
null
optional
translation
object (OrderCustomFieldTranslationDTO)
optional
shippingLine
object (ShippingLineDTO)
optional
carrierId
string | null
optional
carrierCode
string | null
optional
title
string | null
optional
type
enum<string>
optional
Allowed values:
ManualAfterSalesProAcsGenikiTaxidromikiignore
netPrice
number <double> | null
optional
totalAmount
number <double> | null
optional
vatLines
array[object (ShippingVatDTO) {2}] | null
optional
giftLines
array[object (GiftLineDTO) {7}] | null
optional
productId
string | null
optional
productVariantId
string | null
optional
productTitle
string | null
optional
quantity
number <double> | null
optional
vatCode
string | null
optional
imageLink
string | null
optional
productAlias
string | null
optional
expenseLines
array[object (ExpenseLineDTO) {3}] | null
optional
id
string | null
optional
netValue
number <double>
optional
vatValue
number <double>
optional
payment
object (OrderPaymentDTO)
optional
id
string | null
optional
code
string | null
optional
provider
enum<string>
optional
Allowed values:
OnePayEveryPayCreditPayPalDepositPayGateCardLinkEDPSJCCCODStripeKlarnaEpayNexiignore
status
enum<string>
optional
Allowed values:
SubmittedCompletedPendingCancelledFailedErrorignore
cardType
enum<string>
optional
Allowed values:
OtherVisaMastercardignore
paymentDate
string <date-time> | null
optional
amount
number <double>
optional
approvalCode
string | null
optional
cardNumber
string | null
optional
postDating
integer <int32> | null
optional
installments
integer <int32> | null
optional
bankId
string | null
optional
transactionId
string | null
optional
2.
ProductId
and ProductVariantId
.{
"CustomerSourceId": "CUST001",
"Items": [
{ "ProductId": "P123", "ProductVariantId": "V001" },
{ "ProductId": "P124", "ProductVariantId": "V002" }
]
}
CatalogPricingDTO
customerId
string | null
optional
customerCode
string | null
optional
items
array[object (CatalogPricingItemDTO) {10}] | null
optional
productId
string | null
optional
productVariantId
string | null
optional
sku
string | null
optional
initialUnitPrice
number <double> | null
optional
unitPrice
number <double> | null
optional
initialPrice
number <double> | null
optional
price
number <double> | null
optional
value1
number <double> | null
optional
value2
number <double> | null
optional
value3
number <double> | null
optional
customerSourceId
string | null
optional
[
{
"ProductId": "P123",
"ProductVariantId": "V001",
"InitialPrice": 100.00,
"Price": 90.00
},
{
"ProductId": "P124",
"ProductVariantId": "V002",
"InitialPrice": 150.00,
"Price": 140.00
}
]
ExternalCatalogPricingDTO
productId
string | null
optional
productVariantId
string | null
optional
initialUnitPrice
number <double> | null
optional
unitPrice
number <double> | null
optional
initialPrice
number <double> | null
optional
price
number <double> | null
optional
sku
string | null
optional
value1
number <double> | null
optional
value2
number <double> | null
optional
value3
number <double> | null
optional
3.
ProductId
, ProductVariantId
, and Quantity
.{
"CustomerSourceId": "CUST001",
"Items": [
{ "ProductId": "P123", "ProductVariantId": "V001", "Quantity": 2 },
...
]
}
{
"NetAmount": 180.00,
"TotalAmount": 216.00,
"VatAmount": 36.00,
"ExpenseAmount": 10.00,
"CustomerId": 1,
"CustomerBranchId": 101,
"GiftLines": [],
"VatAnalysis": [],
"Items": [],
"ExpenseLines": []
}
CalculatedPricingDTO
customerId
string | null
optional
customerSourceId
string | null
optional
customerCode
string | null
optional
totalAmount
number <double> | null
optional
netAmount
number <double> | null
optional
vatAmount
number <double> | null
optional
expenseAmount
number <double> | null
optional
discountRate
number <double> | null
optional
discountValue
number <double> | null
optional
giftLines
array[object (GiftLineDTO) {7}] | null
optional
productId
string | null
optional
productVariantId
string | null
optional
productTitle
string | null
optional
quantity
number <double> | null
optional
vatCode
string | null
optional
imageLink
string | null
optional
productAlias
string | null
optional
items
array[object (CalculatedPricingItemDTO) {16}] | null
optional
productId
string | null
optional
productVariantId
string | null
optional
sku
string | null
optional
quantity
number <double> | null
optional
netValue
number <double> | null
optional
initialUnitPrice
number <double> | null
optional
unitPrice
number <double> | null
optional
initialPrice
number <double> | null
optional
price
number <double> | null
optional
lineValue
number <double> | null
optional
expenseValue
number <double> | null
optional
discountValue
number <double> | null
optional
discountRate
number <double> | null
optional
vatValue
number <double> | null
optional
vatRate
number <double> | null
optional
vatCode
string | null
optional
vatAnalysis
array[object (PricingVatAnalysisDTO) {4}] | null
optional
vatRate
number <double> | null
optional
vatAmount
number <double> | null
optional
vatCode
string | null
optional
netAmount
number <double> | null
optional
expenseLines
array[object (ExpenseLineDTO) {3}] | null
optional
id
string | null
optional
netValue
number <double>
optional
vatValue
number <double>
optional
4.
{
"CustomerSourceId": "CUST001"
}
{
"CustomerSourceId": "CUST001",
"Period": "2024-01",
"FiscalYear": 2024,
"Debit": 500.00,
"Credit": 300.00,
"Turnover": 200.00
}
5.
{
"CustomerSourceId": "CUST001",
"DateFrom": "2024-01-01",
"DateTo": "2024-02-01"
}
[
{
"Id": "TXN123",
"CustomerSourceId": "CUST001",
"CustomerBranchSourceId": "BR001",
"Code": "INV001",
"Credit": 100.00,
"Debit": 0.00,
"Turnover": 100.00,
"Notes": "Payment for invoice INV001",
"DocumentId": "DOC123",
"UpdateDate": "2024-01-15T10:00:00",
"ProgressiveBalance": 1000.00,
"InvoiceUrl": "https://example.com/invoice/INV001"
},
...
]
Modified at 2024-08-26 11:19:09