Skip to content

    POST - /orders{action} - Validation of Orders

    POST /orders/debit

    Method: POST

    URI: /orders/debit

    Parent Error Code (where applicable): 12000 Error while creating order

    HTTP status: 400 Bad Request

    Overview

    FieldData TypeRequired forUniqueValue Range LengthLengthExpectationCode
    initialAmountNumberAllNogreater then min. authorizing amount in cents and less then 99999997Integer between 1 and 999999912200 12201
    currencyStringAllNoProcessing, dependent on payment method and merchant configuration3Currency code in the range of ISO_421712202 12203
    productStringAllNo[creditcard, paypal, paydirekt, ratepay-invoice, ratepay-directdebit, ratepay-installment, sofort]128one of the following: [creditcard, paypal, paydirekt, ratepay-invoice, ratepay-directdebit, ratepay-installment, sofort]12256 12257 12602 12603
    asyncObjectPayPal PayDirekt SofortNoObject of type async12204
    async.successUrlStringAllNoClass URL{6 - 2048}Mandatory string representing a valid http URL according to: Class URL and UrlValidator12205 12206
    async.failureUrlStringAllNoClass URL{6 - 2048}Mandatory string representing a valid http URL according to: Class URL UrlValidator12207 12208
    async.cancelUrlStringAllNoClass URL{6 - 2048}Mandatory string representing a valid http URL according to: Class URL UrlValidator12209 12210
    termsNumberRatepayNolongUNIX timestamp in ms12213 12214
    privacyNumberRatepayNolongUNIX timestamp in ms12215 12216

    SAQ A-EP/SAQ A Use Cases

    payment.paymentInstrumentIdStringCreditCard, if no credit card payment data provided. Ratepay Direct Debit, if no sepa payment data provided. Not mandatory for Ratepay Installment (see bank-transfer case). Denied for Ratepay Invoice. Denied for PayPal. Denied for PayDirekt. Not mandatory for Sofort. Sepa payment instrument or sepa payment data may be provided. Required for PayPal.Yes20Unique string representing a payment Instrument Id. May contain numbers, letters, dashes and underscores.12260 12261 12262 12263

    Server to Server Use Case

    FieldData TypeRequired forUniqueValueLengthExpectationCode
    merchantPaymentInstrumentIdStringNoYes{1 - 255}Unique string representing a customer merchant generated unique identifier for a payment instrument.10205 10206
    payment.accountHolderStringNoneNo{4 - 128}String between 4 and 128 characters representing a valid account holder.May contain letters, whitespaces, dots, apostrophes, dashes and numbers.16016
    payment.bankNameStringNoneNo{1 - 255}String between 1 and 255 characters containging only letters, whitespace and numbers16011
    payment.bicStringNoneNo8 or 11String from 8 or 11 characters representing a valid BIC16014
    payment.cardHolderStringNoneNo{3 - 128}Mandatory string between 3 and 128 characters containing only letters, whitespaces, dots, apostrophes and dashes16009 16010
    payment.cardNumberStringCreditCardNoDepends on Credit card types{12 - 19}Mandatory string between 12 and 19 symbols, representing a valid creditcard number16000 16001
    payment.expiryMonthStringCreditCardNo['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']2Mandatory numeric string between 01 and 12 representing the month in a valid creditcard expiry date. Must be greater than current date.16004 16005
    payment.expiryMonth AND payment.expiryYearValidationCreditCardNoExpiry Year must be greater than currentYear and Expiry Month must be greater than currentMonthValid creditcard expiry date must be greater than current date.16008
    payment.expiryYearStringCreditCardNo['01', '02', ..., '99']2Mandatory numeric string between 01 and 99, representing the year in a valid creditcard expiry date. Must be greater than current date16006 16007
    payment.ibanStringSepaYes34Mandatory string between 22 and 34 characters representing a valid german IBAN (should start with DE)16012 16013 Bad value for '
    payment.verificationStringCreditCardNoDepends on Credit card types.Not mandatory for maestro.max. 4Mandatory numeric string between 3 and 4 representing a valid creditcard verification number.16002 16003

    POST /orders/preauth

    Method: POST

    URI: /orders/preauth

    Parent Error Code (where applicable): 12000 Error while creating order

    HTTP status: 400 Bad Request

    Overview

    FieldData TypeRequired forUniqueValue Range LengthLengthExpectationCode
    initialAmountNumberAllNogreater then min. authorizing amount in cents and less then 99999997Integer between 1 and 999999912200 12201
    currencyStringAllNoProcessing, dependent on payment method and merchant configuration3Currency code in the range of ISO_421712202 12203
    productStringAllNo[creditcard, paypal, paydirekt, ratepay-invoice, ratepay-directdebit, ratepay-installment, sofort]128one of the following: [creditcard, paypal, paydirekt, ratepay-invoice, ratepay-directdebit, ratepay-installment]12256 12257 12602 12603
    asyncObjectPayPal PayDirekt SofortNoObject of type async12204
    async.successUrlStringAllNoClass URL{6 - 2048}Mandatory string representing a valid http URL according to: Class URL and UrlValidator12205 12206
    async.failureUrlStringAllNoClass URL{6 - 2048}Mandatory string representing a valid http URL according to: Class URL UrlValidator12207 12208
    async.cancelUrlStringAllNoClass URL{6 - 2048}Mandatory string representing a valid http URL according to: Class URL UrlValidator12209 12210
    termsNumberRatepayNolongUNIX timestamp in ms12213 12214
    privacyNumberRatepayNolongUNIX timestamp in ms12215 12216

    SAQ A-EP/SAQ A Use Cases

    FieldData TypeRequired forUnique LengthExpectationCode
    payment.paymentInstrumentIdStringCreditCard, if no credit card payment data provided. Ratepay Direct Debit, if no sepa payment data provided. Not mandatory for Ratepay Installment (see bank-transfer case). Denied for Ratepay Invoice. Denied for PayPal. Denied for PayDirekt. Not mandatory for Sofort. Sepa payment instrument or sepa payment data may be provided. Required for PayPal.Yes20Unique string representing a payment Instrument Id. May contain numbers, letters, dashes and underscores.12260 12261 12262 12263

    Server to Server use case

    FieldData TypeRequired forUniqueValue RangeLengthExpectationCode
    merchantPaymentInstrumentIdStringNoYes{1 - 255}Unique string representing a customer merchant generated unique identifier for a payment instrument.10205 10206
    payment.cardNumberStringCreditCardNoDepends on Credit card types{12 - 19}Mandatory string between 12 and 19 symbols, representing a valid creditcard number16000 16001
    payment.verificationStringCreditCardNoDepends on Credit card types.Not mandatory for maestro.max. 4Mandatory numeric string between 3 and 4 representing a valid creditcard verification number.16002 16003
    payment.expiryMonthStringCreditCardNo['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']2Mandatory numeric string between 01 and 12 representing the month in a valid creditcard expiry date. Must be greater than current date.16004 16005
    payment.expiryYearStringCreditCardNo['01', '02', ..., '99']2Mandatory numeric string between 01 and 99, representing the year in a valid creditcard expiry date. Must be greater than current date16006 16007
    payment.expiryMonth AND payment.expiryYearValidationCreditCardNoExpiry Year must be greater than currentYear and Expiry Month must be greater than currentMonthValid creditcard expiry date must be greater than current date.16008
    payment.cardHolderStringNoneNo{3 - 128}Mandatory string between 3 and 128 characters containing only letters, whitespaces, dots, apostrophes and dashes16009 16010
    payment.bankNameStringNoneNo{1 - 255}String between 1 and 255 characters containging only letters, whitespace and numbers16011
    payment.ibanStringSepaYes34Mandatory string between 22 and 34 characters representing a valid german IBAN (should start with DE)16012 16013 Bad value for '
    payment.bicStringNoneNo8 or 11String from 8 or 11 characters representing a valid BIC16014
    payment.accountHolderStringNoneNo{4 - 128}String between 4 and 128 characters representing a valid account holder.May contain letters, whitespaces, dots, apostrophes, dashes and numbers.16016

    POST /orders/credit

    Method: POST /orders/credit

    URI: /orders/credit

    Parent Error Code (where applicable): 12000 Error while creating order

    HTTP status: 400 Bad Request

    Overview

    FieldData TypeRequired forUniqueValue RangeLengthExpectationCode
    initialAmountNumberAllNogreater then min. authorizing amount in cents and less then 99999997Integer between 1 and 999999912200 12201
    currencyStringAllNoProcessing, dependent on payment method and merchant configuration3Currency code in the range of ISO_421712202 12203
    productStringAllNo[creditcard]128[creditcard]12256 12257 12602 12603
    termsNumberRatepayNolongUNIX timestamp in ms12213 12214
    privacyNumberRatepayNolongUNIX timestamp in ms12215 12216
    descriptionStringNoneNo{1 - 128}String between 1 and 128 characters12217
    statementDescriptionStringNoneNo{1 - 128}String between 1 and 128 characters12218
    basketArray[item]RatepayNoArray of type 'item'12219 12220
    item.nameStringAll(when basket is present)No{1 - 128}String between 1 and 128 characters12220 12220

    SAQ A-EP/SAQ A Use Cases

    FieldData TypeRequired forUniqueLengthExpectationCode
    payment.paymentInstrumentIdStringCreditCard, if no credit card payment data provided. Ratepay Direct Debit, if no sepa payment data provided. Not mandatory for Ratepay Installment (see bank-transfer case). Denied for Ratepay Invoice. Denied for PayPal. Denied for PayDirekt. Not mandatory for Sofort. Sepa payment instrument or sepa payment data may be provided. Required for PayPal.Yes20Unique string representing a payment Instrument Id. May contain numbers, letters, dashes and underscores.12260 12261 12262 12263

    Server to Server Use Case

    FieldData TypeRequired forUniqueValue RangeLengthExpectationCode
    merchantPaymentInstrumentIdStringNoYes{1 - 255}Unique string representing a customer merchant generated unique identifier for a payment instrument.10205 10206
    payment.cardNumberStringCreditCardNoDepends on Credit card types{12 - 19}Mandatory string between 12 and 19 symbols, representing a valid creditcard number16000 16001
    payment.verificationStringCreditCardNoDepends on Credit card types.Not mandatory for maestro.max. 4Mandatory numeric string between 3 and 4 representing a valid creditcard verification number.16002 16003
    payment.expiryMonthStringCreditCardNo['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']2Mandatory numeric string between 01 and 12 representing the month in a valid creditcard expiry date. Must be greater than current date.16004 16005
    payment.expiryYearStringCreditCardNo['01', '02', ..., '99']2Mandatory numeric string between 01 and 99, representing the year in a valid creditcard expiry date. Must be greater than current date16006 16007
    payment.expiryMonth AND payment.expiryYearValidationCreditCardNoExpiry Year must be greater than currentYear and Expiry Month must be greater than currentMonthValid creditcard expiry date must be greater than current date.16008
    payment.cardHolderStringNoneNo{3 - 128}Mandatory string between 3 and 128 characters containing only letters, whitespaces, dots, apostrophes and dashes16009 16010
    payment.bankNameStringNoneNo{1 - 255}String between 1 and 255 characters containging only letters, whitespace and numbers16011
    payment.ibanStringSepaYes34Mandatory string between 22 and 34 characters representing a valid german IBAN (should start with DE)16012 16013 Bad value for '
    payment.bicStringNoneNo8 or 11String from 8 or 11 characters representing a valid BIC16014
    payment.accountHolderStringNoneNo{4 - 128}String between 4 and 128 characters representing a valid account holder.May contain letters, whitespaces, dots, apostrophes, dashes and numbers.16016

    Was this helpful?

    What was your feeling about it?