This site requires javascript to be enabled.

  • Search AI-powered

Results for

xxx

Create dispute

POST https://{domainname}/v1/{merchantId}/payments/{paymentId}/dispute

Payments

The payments REST services allow you to initiate a payment, retrieve the payment details or perform specific actions like refunding or requesting capture of a payment. A payment is identified by its paymentId. Some payment products allow a two step approach allowing you to control when the authorization takes place separate from when the funds are actually captured.

Request

This REST service allows you to dispute transactions with a NOTIFICATION_OF_CHARGEBACK or CHARGEBACKED status. The transaction will automatically be validated to ensure its state is dispute-compatible.

PayloadCreateDisputeRequest

Properties
Property Type Required Details
close

Description

The amount of money that is to be disputed.
  • SDK Object type
    AmountOfMoney
close

Description

Amount in cents and always having 2 decimals
close

Description

Three-letter ISO currency code representing the currency for the amount
close

Description

The name of the person on your side who can be contacted regarding this dispute.
close

Description

The email address of the contact person.
close

Description

The email address to which the reply message will be sent.
close

Description

The message sent from you to Worldline.

Request example

SDK: Ruby

This scenario you will probably use the most

  • amount_of_money = Domain::AmountOfMoney.new
    amount_of_money.amount = 1234
    amount_of_money.currency_code = 'USD'
    
    body = Domain::CreateDisputeRequest.new
    body.amount_of_money = amount_of_money
    body.contact_person = 'Wile Coyote'
    body.email_address = 'wile.e.coyote@acmelabs.com'
    body.reply_to = 'r.runner@acmelabs.com'
    body.request_message = 'This is the message from the merchant to GlobalCollect. It is a a freeform text field.'
    
    response = client.v1.merchant('merchantId').payments.dispute('paymentId', body)
    

Responses

Please find below an overview of the possible responses.

Response 201 - CreatedDisputeResponse

The dispute was successfully created.

Properties
Property Type Required Details
close

Description

A list containing all dispute-related information that is generated upon dispute creation.
  • SDK Object type
    DisputeOutput
close

Description

Object containing amount and ISO currency code attributes
  • SDK Object type
    AmountOfMoney
close

Description

Amount in cents and always having 2 decimals
close

Description

Three-letter ISO currency code representing the currency for the amount
close

Description

The name of the person on your side who can be contacted regarding this dispute.
close

Description

Object containing various details related to this dispute’s creation.
  • SDK Object type
    DisputeCreationDetail
close

Description

The date and time of creation of this dispute, in yyyyMMddHHmmss format.
close

Description

The originator of this dispute, which is either Worldline or you as our client.
close

Description

The user account name of the dispute creator.
close

Description

The email address of the contact person.
close

Description

An array containing all files related to this dispute.
close
  • SDK Object type
    HostedFile
close

Description

The name of the file.
close

Description

The size of the file in bytes.
close

Description

The type of the file.
close

Description

The numeric identifier of the file.
close

Description

A collection of reference information related to this dispute.
  • SDK Object type
    DisputeReference
close

Description

The merchant’s order ID of the transaction to which this dispute is linked.
close

Description

Your (unique) reference for the transaction that you can use to reconcile our report files.
close

Description

Payment Reference generated by WebCollect.
close

Description

The numerical identifier of the Service Provider (Acquirer).
close

Description

The Service Provider’s reference.
close

Description

The email address to which the reply message will be sent.
close

Description

The message sent from you to Worldline.
close

Description

The return message sent from the GlobalCollect platform to you.
close

Description

The numeric identifier of the file.
close

Description

The ID of the payment that is being disputed.
close

Description

The status of the dispute in alphabetical format, e.g. CREATED, DRAFT, etc.
close

Description

This object has the numeric representation of the current payment status, timestamp of last status change and performable action on the current payment resource. In case of failed payments and negative scenarios, detailed error information is listed.
  • SDK Object type
    DisputeStatusOutput
close

Description

Flag indicating if the payment can be cancelled
  • true
  • false
close

Description

Highlevel status of the payment, payout or refund with the following possible values:
  • CREATED - The transaction has been created. This is the initial state once a new payment, payout or refund is created. This category groups the following statuses:
    • CREATED
  • PENDING_PAYMENT: The payment is waiting on customer action. This category groups the following statuses:
    • PENDING_PAYMENT
    • REDIRECTED
  • ACCOUNT_VERIFIED: The account has been verified. This category groups the following statuses:
    • ACCOUNT_VERIFIED
  • PENDING_MERCHANT: The transaction is awaiting approval to proceed with the payment, payout or refund. This category groups the following statuses:
    • PENDING_APPROVAL
    • PENDING_COMPLETION
    • PENDING_CAPTURE
    • PENDING_FRAUD_APPROVAL
  • PENDING_CONNECT_OR_3RD_PARTY: The transaction is in the queue to be processed. This category groups the following statuses:
    • AUTHORIZATION_REQUESTED
    • CAPTURE_REQUESTED
    • PAYOUT_REQUESTED
    • REFUND_REQUESTED
  • COMPLETED: The transaction has completed. This category groups the following statuses:
    • CAPTURED
    • PAID
    • ACCOUNT_CREDITED
    • CHARGEBACK_NOTIFICATION
  • REVERSED: The transaction has been reversed. This category groups the following statuses:
    • CHARGEBACKED
    • REVERSED
  • REFUNDED: The transaction has been refunded. This category groups the following statuses:
    • REFUNDED
  • UNSUCCESSFUL: The transaction has been rejected or is in such a state that it will never become successful. This category groups the following statuses:
    • CANCELLED
    • REJECTED
    • REJECTED_CAPTURE
    • REJECTED_CREDIT

Please see Statuses for a full overview of possible values.
close

Description

Numeric status code of the legacy API. It is returned to ease the migration from the legacy APIs to Worldline Connect. You should not write new business logic based on this property as it will be deprecated in a future version of the API. The value can also be found in the GlobalCollect Payment Console, in the Ogone BackOffice and in report files.
close

Description

Date and time of payment
Format: YYYYMMDDHH24MISS

Response example

SDK: Ruby

This scenario you will probably use the most

  • {
        "disputeOutput" : {
            "amountOfMoney" : {
                "amount" : 1234,
                "currencyCode" : "EUR"
            },
            "contactPerson" : "Wile E. Coyote",
            "creationDetails" : {
                "disputeCreationDate" : "20181218035202"
            },
            "emailAddress" : "wile.e.coyote@acmelabs.com",
            "files" : [ ],
            "reference" : {
                "merchantOrderId" : "123456",
                "paymentReference" : "0",
                "providerId" : "1000000071",
                "providerReference" : "null"
            },
            "replyTo" : "wile.e.coyote@acmelabs.com",
            "requestMessage" : "This is the message from the merchant to GlobalCollect"
        },
        "id" : "821",
        "paymentId" : "000000170100001958950000100001",
        "status" : "DRAFT",
        "statusOutput" : {
            "isCancellable" : false,
            "statusCode" : 500,
            "statusCodeChangeDateTime" : "20181218035202"
        }
    }
    

Response 400 - Bad requestErrorResponse

The request is not in the correct format or the transaction isn’t in the correct state to allow a dispute.

Properties
Property Type Required Details
close

Description

Unique reference, for debugging purposes, of this error response
close

Description

List of one or more errors
close

Description

Contains detailed information on one single error.
  • SDK Object type
    APIError
close

Description

Category the error belongs to. The category should give an indication of the type of error you are dealing with. Possible values:
  • CONNECT_PLATFORM_ERROR - indicating that a functional error has occurred in the Connect platform.
  • PAYMENT_PLATFORM_ERROR - indicating that a functional error has occurred in the Payment platform.
  • IO_ERROR - indicating that a technical error has occurred within the Connect platform or between Connect and any of the payment platforms or third party systems.
close

Description

Error code
close

Description

HTTP status code for this error that can be used to determine the type of error
close

Description

ID of the error. This is a short human-readable message that briefly describes the error.
close

Description

Human-readable error message that is not meant to be relayed to customer as it might tip off people who are trying to commit fraud
close

Description

Returned only if the error relates to a value that was missing or incorrect.
Contains a location path to the value as a JSonata query.
Some common examples:
  • a.b selects the value of property b of root property a,
  • a[1] selects the first element of the array in root property a,
  • a[b='some value'] selects all elements of the array in root property a that have a property b with value 'some value'.
close

Description

ID of the request that can be used for debugging purposes

Response example

SDK: Ruby

This scenario you will probably use the most

  • {
        "errorId" : "5c37119e95088215f272b323c7761241",
        "errors" : [
            {
                "code" : "310400200",
                "id" : "DISPUTE_ACTION_NOT_ALLOWED_ON_TRANSACTION",
                "category" : "DISPUTE_SERVICE_ERROR",
                "message" : "Action not allowed for current state",
                "httpStatusCode" : 400
            }
        ]
    }