---
title: "Pay subscription"
method: POST
path: "/v1.02/creditcard/payment/{recurrentID}"
---

# Pay subscription

`POST /v1.02/creditcard/payment/{recurrentID}`

## Request

- Base URL: `https://sandbox.eupago.pt/api`
- URL: `https://sandbox.eupago.pt/api/v1.02/creditcard/payment/{recurrentID}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/eupago/apis/rest-api-apikey-auth/docs/v1.02/creditcard/payment/:recurrentID/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a Credit Card Subscription MIT (Merchant initiated transaction) payment after a sucessful authorization.

## Path parameters

- `recurrentID` integer, required

## Request body

- object
  - `payment` object, required
    - `identifier` string
    - `amount` object
      - `value` number, float, required: Payment amount
      - `currency` string, required
    - `daysToCapture` integer
    - `successUrl` string, required: The payer will be forwarded to this url if the payment process is successful.
    - `failUrl` string, required: The payer will be forwarded to this url if the payment process fails (eg: no funds, problems with 3DS)
    - `backUrl` string, required: The payer will be forwarded to this url if the user presses back.
    - `lang` string: Defines the Language of the form.
  - `customer` object
    - `notify` boolean
    - `email` string: Customer's email

## Response `200`

200

- object
  - `transactionStatus` string
  - `status` string
  - `transactionID` string
  - `reference` string
  - `message` string

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/eupago/apis/rest-api-apikey-auth.md) - [All operations](https://skmtc.dev/eupago/apis/rest-api-apikey-auth/llms.txt) - [OpenAPI document](https://skmtc.dev/eupago/apis/rest-api-apikey-auth/revisions/a8c2e94702a4?raw)
