Diagnose Interface

The Diagnose request will send a request to the payment gateway which will verify the capture or chargeback status of a transaction. If the requested transaction has a capture or chargeback, the status of this will be sent back. If the Diagnose requests are send correctly to the system, the Diagnose interface will send back the transactions via XML Response.

Below is the diagnose URL for our test environment ( diagnose )

POST URL: https://sandbox.powerpay21.com/pay/backoffice/tx_diagnose

1. REQUEST PARAMETERS WITH TRANSACTION-ID

The POST request should contain the following mandatory components:

  • Test Credentials

EXAMPLE :

Diagnose Request & Response with transaction-id

Diagnose Request

Field NameTypeLengthMandatory?Description
merchantid alphanumeric40 charactersmerchant identification
type alphanumerictx
transactionid numericempty or transactionidpayment gateway transaction identificationnumeric
signature hex40 charactersSHA1–HashSignature Calculation

Diagnose Response

Field NameTypeContentDescription
amount numericempty or amount valueamount
creation_date alphanumericcreation dateDate and time for transaction insert into payment gateway
currency charempty or currency valuecurrency
custom1 alphanumericCustom1Custom 1
error_code alphanumericError Code0-successful, 2000-pending, otherwise-failed
order_id alphanumericempty or orderid valueorderid in the merchant shop system
type charTypeType

2. REQUEST PARAMETERS WITH ORDER-ID

The POST request should contain the following mandatory components:

  • Test Credentials

EXAMPLE :

  • Diagnose Request & Response with orderid

Diagnose Request

Field NameTypeLengthFormatMandatory?Description
merchantid alphanumeric40 charactersmerchant identification
typecharacterorderid
orderidalphanumericmax 30 charactersorderid in merchant shop system
start_datealphanumeric10 charactersdd.mm.yyyystart time frame
end_date alphanumeric10 charactersdd.mm.yyyyend time frame
signature hex40 charactersSHA1–HashSignature Calculation

Diagnose Response

Field NameTypeContentDescription
amount numericempty or amount valueamount
creation_datealphanumericcreation dateDate and time for transaction insert into payment gateway
currency charempty or currency valuecurrency
custom1alphanumericCustom1Custom 1
error_code alphanumericError Code0-successful, 2000-pending, otherwise-failed
order_idalphanumericempty or orderid valueorderid in the merchant shop system
typecharTypeType

3. REQUEST PARAMETERS WITH TYPE = CAPTURE

The POST request should contain the following mandatory components:

  • Test Credentials

EXAMPLE :

  • Diagnose Request & Response for Capture

Diagnose Request

Field NameTypeLengthFormatMandatory?Description
merchantid alphanumeric40 charactersmerchant identification
type charactercapture
start_date alphanumeric10 charactersdd.mm.yyyystart time frame
end_date alphanumeric10 charactersdd.mm.yyyyend time frame
signature hex40 charactersSHA1–HashSignature Calculation

Diagnose Response

Field NameTypeFormatDescription
orderid alphanumericempty or orderid valueorderid in the merchant shop system
transactionid numericempty or transactionidpayment gateway transaction identification
amount numericamount or empty valuenumber
currency charempty or currency valuecurrency
booking_date alphanumericdd.mm.yyyybooking time frame
issue_date alphanumericdd.mm.yyyyissued time frame

4. REQUEST PARAMETERS WITH TYPE = CHB ( CHARGEBACKS)

The POST request should contain the following mandatory components:

  • Test Credentials

EXAMPLE :

  • Diagnose Request & Response for Chargeback

Diagnose Request

Field NameTypeLengthFormatMandatory?Description
merchantid alphanumeric40 charactersmerchant identification
type alphanumericchb
transactionid numericempty or transactionidpayment gateway transaction identificationnumeric
start_date alphanumeric10 charactersdd.mm.yyyystart time frame
end_date alphanumeric10 charactersdd.mm.yyyyend time frame
signature hex40 charactersSHA1–HashSignature Calculation

Diagnose Response

Field NameTypeFormatDescription
orderid alphanumericempty or orderid valueorderid in the merchant shop system
transactionid numericempty or transactionidpayment gateway transaction identification
amount numericamount or empty valuenumber
currency charempty or currency valuecurrency
booking_date alphanumericdd.mm.yyyybooking time frame
issue_date alphanumericdd.mm.yyyyissued time frame

5. REQUEST PARAMETERS WITH TYPE = PENDING

The POST request should contain the following mandatory components:

  • Test Credentials

EXAMPLE :

  • Diagnose Request & Response for Pending

Diagnose Request

Field NameTypeLengthFormatMandatory?Description
merchantid alphanumeric40 charactersmerchant identification
type characterpending
start_date alphanumeric10 charactersdd.mm.yyyystart time frame
end_datealphanumeric10 charactersdd.mm.yyyyend time frame
signaturehex40 charactersSHA1–HashSignature Calculation

Diagnose Response

Field NameTypeFormatDescription
orderid alphanumericempty or orderid valueorderid in the merchant shop system
transactionid numericempty or transactionidpayment gateway transaction identification
amount numericamount or empty valuenumber
currency charempty or currency valuecurrency
booking_date alphanumericdd.mm.yyyybooking time frame
issue_date alphanumericdd.mm.yyyyissued time frame

6. REQUEST PARAMETERS WITH TYPE = FAILED

The POST request should contain the following mandatory components:

  • Test Credentials

EXAMPLE :

  • Diagnose Request & Response for Failed

Diagnose Request

Field NameTypeLengthFormatMandatory?Description
merchantid alphanumeric40 charactersmerchant identification
type characterfailed
start_date alphanumeric10 charactersdd.mm.yyyystart time frame
end_date alphanumeric10 charactersdd.mm.yyyyend time frame
signature hex40 charactersSHA1–HashSignature Calculation

Diagnose Response

Field NameTypeFormatDescription
orderid alphanumericempty or orderid valueorderid in the merchant shop system
transactionid numericempty or transactionidpayment gateway transaction identification
amount numericamount or empty valuenumber
currency charempty or currency valuecurrency
booking_date alphanumericdd.mm.yyyybooking time frame
issue_date alphanumericdd.mm.yyyyissued time frame

7. REQUEST PARAMETERS WITH TYPE = RETRIEVAL-REQUEST

The POST request should contain the following mandatory components:

  • Test Credentials

EXAMPLE :

  • Diagnose Request & Response for Retrieval-request

Diagnose Request

Field NameTypeLengthFormatMandatory?Description
merchantid alphanumeric40 charactersmerchant identification
type characterretrieval_request
start_date alphanumeric10 charactersdd.mm.yyyystart time frame
end_date alphanumeric10 charactersdd.mm.yyyyend time frame
signature hex40 charactersSHA1–HashSignature Calculation

Diagnose Response

Field NameTypeFormatDescription
orderid alphanumericempty or orderid valueorderid in the merchant shop system
transactionid numericempty or transactionidpayment gateway transaction identification
amount numericamount or empty valuenumber
currency charempty or currency valuecurrency
booking_date alphanumericdd.mm.yyyybooking time frame
issue_date alphanumericdd.mm.yyyyissued time frame

8. REQUEST PARAMETERS WITH TYPE = REFUND

The POST request should contain the following mandatory components:

Test Credentials

EXAMPLE :

  • Diagnose Request & Response for Refund

Diagnose Request

Field NameTypeLengthFormatMandatory?Description
merchantid alphanumeric40 charactersmerchant identification
type characterrefund
start_date alphanumeric10 charactersdd.mm.yyyystart time frame
end_date alphanumeric10 charactersdd.mm.yyyyend time frame
signature hex40 charactersSHA1–HashSignature Calculation

Diagnose Response

Field NameTypeFormatDescription
orderid alphanumericempty or orderid valueorderid in the merchant shop system
transactionid numericempty or transactionidpayment gateway transaction identification
amount numericamount or empty valuenumber
currency charempty or currency value
error_code alphanumericError code
issue_date alphanumericdd.mm.yyyy
refund_date alphanumericdd.mm.yyyy

Here is a list of the possible types one can get in the response

type=invoce -> authorized
type=booked -> captured
type=refund
type=chargeback
type=retrieval_request
type=partial booking -> partial capture
type=reversal

Note: The end_date is inclusive, e.g. if you want to get a list of all transactions imported into the payment gateway on the 1st of May 2015 for example, your start_date and end_date would both be <01.05.2015>.