> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paybyrd.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Multibanco

Multibanco is the most popular payment method in Portugal, allowing consumers to pay via online banking or in cash at a bank branch.

> [!WARNING]
>
> **Expiration:** The payment must be completed in seven days.

## How it works

![Flowchart depicting Multibanco payment flow](https://mintcdn.com/paybyrd/_2RsTPIIlIKxMrgj/accept-payments/img/multibanco-payment-flow.png?fit=max\&auto=format\&n=_2RsTPIIlIKxMrgj\&q=85\&s=edc55deded19ac31a42a39608bcbcd1b)

Multibanco is an asynchronous payment method. When you create a payment, Paybyrd receives a response from Multibanco confirming the payment was created. The transaction then remains in a processing status until the customer pays.

Once a Multibanco reference is generated, the order is locked — the customer cannot switch to a different payment method. If the customer needs to pay with a different method, a new order must be created. As soon as the customer completes the payment, the Multibanco system notifies Paybyrd, and the transaction is updated to succeeded or failed. The customer can complete the payment through any ATM or online banking, using the payment data returned in the payment creation response.

## Create payment

The example below shows a simple request to create a Multibanco payment and the corresponding response:

```bash Request theme={null}
curl --request POST \
 --url https://gateway.paybyrd.com/api/v2/payment \
 --header 'Accept: application/json' \
 --header 'Content-Type: application/json' \
 --header 'x-api-key: {your_api_key}' \
 --data '
{
 "type": "OnlineTransfer",
 "amount": "8.15",
 "currency": "EUR",
 "orderRef": "ABC12345", 
 "brand": "Sibs_Multibanco",
 "redirectUrl": "https://your-shop-url?orderRef=ABC12345"
}'
```

```json Response theme={null}
{
 "multibanco": {
   "serviceSupplierId": "11854",
   "paymentReference": "999999935",
   "waitForNotification": "1",
   "redirectOptional": "1"
 },
 "type": "OnlineTransfer",
 "currency": "EUR",
 "orderRef": "ABC12345",
 "brand": "Sibs_Multibanco",
 "redirectUrl": "https://your-shop-url?orderRef=ABC12345",
 "code": "BYRD207",
 "description": "Pending redirect",
 "transactionId": "39824983-4a13-42d4-8e85-e2821e494975",
 "amount": "8.15",
 "action": {
   "type": "redirect",
   "url": "https://gateway.paybyrd.com/api/v1/Redirect/39824983-4a13-42d4-8e85-e2821e494975"
 }
}
```

See the [full API reference](https://docs.paybyrd.com/api-reference/payments/create-payment.md) for more details.

Check the `code` field to know whether the transaction was accepted. A successful scenario returns the code `BYRD207`. You can find the list of all status codes in the [Response code reference](https://docs.paybyrd.com/api-reference/api-code-reference.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.