credit

The credit element is the parent element for all Credit transactions. You can use this element in either Online or Batch transactions.

If you coded to schema V11 or above, verify the Approved status of credit transaction by reviewing the Decline transaction report.

Parent Elements:

cnpOnlineRequest, batchRequest

Attributes:

Attribute Name

Type

Required?

Description

id

String

Yes

A unique identifier assigned by the presenter and mirrored back in the response.

minLength = 1 maxLength = 36

customerId

String

No

A value assigned by the merchant to identify the consumer.

minLength = N/A maxLength = 50

reportGroup

String

Yes

Required attribute that defines the merchant sub-group in the user interface where this transaction will be displayed. For additional information, please refer to Coding for Report Groups.

minLength = 1 maxLength = 25

Child Elements:

For credits to transactions processed by Worldpay (Required): cnpTxnId

For credits to transactions processed by Worldpay (Optional): amount, payPalNotes, pin, secondaryAmount, surchargeAmount, accountFundingTransactionData

If you do not specify an amount, the system uses the full amount from the associated settlement transaction. You must include the amount element for credits to transactions not processed by Worldpay.

For credits to transactions not processed by Worldpay (Required): orderId, amount, orderSource, choice of card, token, paypage, mpos, paypal

For credits to transactions not processed by Worldpay (Optional): billToAddress, merchantCategoryCode

For both transaction types (Optional): customBilling, taxType, enhancedData, processingInstructions, merchantData, actionReason, mpos, lodgingInfo, businessIndicator