Captures

Captures a Single Auth, Frequent and Frequent Auth

Required scope: <code style="background:#e8f0fe;color:#1a73e8;padding:2px 8px;border-radius:12px;font-size:0.85em">capture:create</code>

post/capture/{id}

Request

  • Base URL
    https://api.test.easypay.pt/2.0
  • Auth
    API key in header AccountId and API key in header ApiKey

Path parameters

id, string uuid required

Resource Identification

Request body

CapturePostRequest required
transaction_key, string

Your internal key identifying this capture

capture_date, string date

The date when the action should be executed. This field specifies the exact day for capturing the transaction, formatted as "YYYY-MM-DD" (e.g., "2024-06-30"). It is optional and defaults to the current date if not specified.

account, object

For multi-account clients.

splits, CaptureSplitCreate[]

Used in split payments.

reward_redemption, RewardRedemption

Apply accumulated reward credits to reduce the payment value. Supports full or partial redemption of available reward balance. Only available on the payment methods CC, MBW, AP, GP, SW, and IPP. See the Rewards & Redemptions guide for the full flow.

force_3ds, boolean

Whether or not you want to force the 3DS authentication on Credit Cards (used only on Frequent capture without authorisation).

descriptive, string

This will appear in the bank statement/MB WAY application.

value, number double

Value will be rounded to 2 decimals.

Example request

{
  "transaction_key": "key example",
  "capture_date": "2022-11-11",
  "splits": [
    {
      "split_key": "Payment of Invoice Nº 1982652",
      "split_descriptive": "Payment of Invoice Nº 1982652",
      "account": {
        "id": "c6056234-a3f9-42de-b944-3ed793fcb6bb"
      },
      "value": 17.5,
      "clearing_period": "30D",
      "margin_account": {
        "id": "c6056234-a3f9-42de-b944-3ed793fcb6bb"
      },
      "margin_value": 0.25,
      "reward": {
        "account": {
          "id": "c6056234-a3f9-42de-b944-3ed793fcb6bb"
        },
        "value": 1,
        "expiration_date": "2027-04-02"
      }
    }
  ],
  "reward_redemption": {
    "account": {
      "id": "c6056234-a3f9-42de-b944-3ed793fcb6bb"
    },
    "value": 2.5
  },
  "descriptive": "descriptive example",
  "value": 20.55
}

Response

Created

CapturePostResponse required
status, string
message, string[]
id, string uuid

A unique identifier for the resource. While typically formatted as a UUID (Universally Unique Identifier), it can also be in other formats as defined by the user. This field ensures the resource can be distinctly recognized and referenced.

Example response

{
  "status": "ok",
  "message": [
    "Your request was successfully created"
  ],
  "id": "677dbec9-ec19-4a78-9e08-3d2901c7a32b"
}

Changes

No recorded changes to this operation across all 11 revisions of this API.