Multipay Direct API v1
Institution API / Integration guides

Certificates & signatures

Use the sections that apply to your onboarding agreement. Optional enforcement still validates any certificate or signature you supply.

Institution onboarding

mTLS certificate lifecycle

mTLS is Required by default. Multipay may assign Optional mode to an institution during onboarding. Optional mode permits certificate-free requests; supplied certificates remain subject to trust, validity and institution authorization checks. Message-signing requirements are configured separately.

Each institution maintains separate private keys for mTLS and HTTP message signing. Generate both keys within the institution's controlled environment. Multipay receives the mTLS certificate signing request (CSR) and the message-signing public key; private keys must not be submitted.

Certificate request

Generate an RSA 2048-bit, 3072-bit or 4096-bit key and a SHA-256-signed CSR containing the institution's common name. These key sizes apply to mTLS certificates; HTTP message signing requires a separate RSA 3072-bit or 4096-bit key. For example:

OpenSSL · run in a protected local directory
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:3072 -out mtls-private.pem
openssl req -new -sha256 -key mtls-private.pem -out institution.csr.pem -subj "/O=Example Bank/CN=Example Bank UAT"
  1. Send institution.csr.pem through the agreed onboarding channel. Retain mtls-private.pem within the bank.
  2. Multipay reviews the institution identity and public-key fingerprint and approves issuance against the institution's OAuth client.
  3. Multipay returns the client certificate and issuing chain in PEM format. Configure the certificate, chain and matching private key in the integration client.
  4. Request an OAuth token using the certificate, client ID and client secret. Then complete the signed API checks described below.

The standard requested certificate validity is 90 days. A period from 1 to 365 days may be approved, subject to issuer validity. API access requires an active, unexpired certificate registered to the same OAuth client. A trusted certificate alone does not authorize another institution's credentials.

Renewal and revocation

Start renewal before expiry using a new private key and CSR. The current and replacement certificates can remain active during migration. Test the replacement, switch the bank's applications, and arrange revocation of the previous certificate. Revocation blocks subsequent OAuth token and API requests using that certificate, including requests carrying previously issued access tokens. Revoked certificates cannot be reactivated.

Message-signing keys have a separate registration and rotation lifecycle. Changing an mTLS certificate does not change the institution's signing-key policy or OAuth scopes.

Message integrity

HTTP Message Signatures

The multipay-v1 profile signs institution API requests using RFC 9421 and RFC 9530 Content-Digest. It applies to financial submission, requery, account verification and ISO echo. OAuth token requests and API responses are outside this profile.

Signing requirements are agreed during institution onboarding. Under optional enforcement, unsigned requests are accepted and supplied signatures are verified. Under required enforcement, every covered request must be signed. OAuth authentication and endpoint scopes apply in both modes. mTLS enforcement follows the institution’s separate certificate policy.

ElementRequirement
Algorithmrsa-pss-sha512; RSA 3072 or 4096 bits; SHA-512, MGF1 SHA-512, 64-byte salt.
DigestContent-Digest: sha-256=:BASE64_DIGEST:, calculated over the exact transmitted body bytes.
Signature labelsig1. Exactly one signature and one signature-input entry.
Covered componentsIn order: "@method" "@target-uri" "content-type" "content-digest" "authorization".
Parameterscreated, expires, nonce, keyid, alg, tag. All required, each appearing once.
TimeInteger Unix seconds. Creation may be at most 60 seconds ahead and at most 300 seconds old. Expiry must follow creation, be in the future and be no more than 300 seconds after creation. No expiry grace period.
Nonce32 cryptographically random bytes encoded as unpadded base64url (43 characters). Generate a new value for each attempt.
Key ID and tagUse the key ID issued by Multipay for the authenticated institution and OAuth client. Tag: multipay-v1.

Constructing a signed request

  1. Serialize the request body once to UTF-8 bytes and calculate its SHA-256 digest.
  2. Build the signature base below. Use the exact public HTTPS URL, including the original path encoding and query order. Preserve header values; trim surrounding spaces and tabs. Join lines using LF, with no final newline.
  3. Serialize the signature parameters as an RFC 8941 inner list. Preserve their order in the signature base. Sign the base using RSA-PSS and encode the result as standard base64.
  4. Send the original body with the resulting headers and the institution's mutual TLS certificate.

The following example uses the two bytes {}. The token, key ID, timestamps, nonce and signature are illustrative and must be replaced. Header values are transmitted on single lines. This profile accepts only the stated components and parameters, without additional signatures, component parameters or repeated headers.

Request headers · illustrative
Content-Type: application/json
Content-Digest: sha-256=:RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o=:
Authorization: Bearer ACCESS_TOKEN
Signature-Input: sig1=("@method" "@target-uri" "content-type" "content-digest" "authorization");created=1790769600;expires=1790769900;nonce="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";keyid="REGISTERED_KEY_ID";alg="rsa-pss-sha512";tag="multipay-v1"
Signature: sig1=:BASE64_SIGNATURE:
Canonical signature base · illustrative
"@method": POST
"@target-uri": https://uat-conn-api.direct.multipay.cd/api/v1/financial/requery
"content-type": application/json
"content-digest": sha-256=:RBNvo1WzZ4oRRq0W9+hknpT7T8If536DEMBg9hyq/4o=:
"authorization": Bearer ACCESS_TOKEN
"@signature-params": ("@method" "@target-uri" "content-type" "content-digest" "authorization");created=1790769600;expires=1790769900;nonce="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";keyid="REGISTERED_KEY_ID";alg="rsa-pss-sha512";tag="multipay-v1"

Reference signer and Postman

Download the Node.js reference signer (Node.js 22 or later). Store the signing private key and access token in local files with access restricted to the integration operator. Create a local configuration file:

Local signer configuration
{
  "url": "https://uat-conn-api.direct.multipay.cd/api/v1/financial/requery",
  "method": "POST",
  "keyId": "REGISTERED_KEY_ID",
  "bodyFile": "./body.json",
  "tokenFile": "./access-token.txt",
  "keyFile": "./signing-private.pem",
  "outputFile": "./signed-headers.txt"
}
Node.js and cURL
node sign-request.mjs ./signer-config.json
curl --request POST 'https://uat-conn-api.direct.multipay.cd/api/v1/financial/requery' \
  --cert ./mtls-client.crt.pem --key ./mtls-client.key.pem \
  --header @./signed-headers.txt --data-binary @./body.json

In Postman, use the same method, URL and exact raw body, and copy the generated headers into the request. Ensure the Authorization tab does not replace the signed Bearer token. Configure the mutual TLS certificate for the API host. Use the desktop application or Desktop Agent for local certificate access. Send before expiry; regenerate headers for every retry. The signer creates a new output file and will not overwrite an existing one.

Do not export populated Authorization or signing headers. Keep private keys, token files, signer output and institution credentials outside shared collections and source control.

Key registration and rotation

  1. Generate a dedicated RSA signing key pair within the institution's controlled environment. Keep the private key within that environment; submit only the public key in PEM format to Multipay.
  2. Multipay registers the public key against the institution's OAuth client and provides its immutable key ID, SHA-256 fingerprint and validity period. Default validity is one year; an earlier expiry may be selected.
  3. Complete a signed verification with the registered key before mandatory signing is activated.
  4. For rotation, register and validate a new key while the existing key remains active. Switch requests to the new key ID, then arrange revocation of the previous key. Expired or revoked keys are rejected immediately; revocation cannot be reversed.

Signature errors and retries

HTTPErrorAction
400malformed_signatureCorrect missing, duplicated or malformed signing headers and parameters.
401signature_requiredSign the request using an active registered key.
401invalid_signatureCheck the key association and validity, timestamps, digest and covered components.
401signature_replayGenerate a new nonce and signature. Retain the original transaction reference.
503signature_unavailableVerification is temporarily unavailable. Retry with a new signature.

Signature verification failures do not execute the requested business operation. After a network timeout, requery the original transaction reference before resubmitting. OAuth, mutual TLS, scope and business-validation errors retain their existing response formats.

These requirements define Multipay's integration profile. Any additional institution-specific signing specification requires separate agreement.

Multipay outbound signatures Optional

Multipay callbacks, ownership challenges and bank-processing requests are unsigned by default. To receive signed result callbacks, include "sign_callback": true in each financial or reversal submission. Omitting the field or setting it to false selects unsigned callbacks. A verified, enabled callback endpoint is required for notification delivery. The choice applies to all result events for that operation, including retries, reconciliation results and manual redelivery.

Processing requests and ownership challenges use the signing option selected at endpoint registration. When requested, signatures use multipay-notification-v1, independently of the institution’s policy for requests sent to Multipay. The profile follows RFC 9421 and RFC 9530.

Algorithm: RSA-PSS SHA-512, MGF1 SHA-512, 64-byte salt, RSA 3072 or 4096 bits. Body digest: SHA-256 over the exact transmitted bytes. Signature label: sig1. Covered components, in order: @method, @target-uri, content-type, content-digest.

Canonical signature base · schematic
"@method": POST
"@target-uri": https://bank.example/multipay/results
"content-type": application/json
"content-digest": sha-256=:BASE64_SHA256_OF_EXACT_BODY:
"@signature-params": ("@method" "@target-uri" "content-type" "content-digest");created=1790769600;expires=1790769900;nonce="BASE64URL_32_RANDOM_BYTES";keyid="MULTIPAY_KEY_ID";alg="rsa-pss-sha512";tag="multipay-notification-v1"

The Signature-Input header is sig1= followed by the signature parameters above. Signature is sig1=:BASE64_RSA_SIGNATURE:. The schematic placeholders must not be used as signatures.

For a delivery expected to be signed, reject missing or incomplete signing headers; do not accept an unsigned fallback. When signing headers are present, verify them before processing. Reject expired signatures, signatures created more than 300 seconds ago or more than 60 seconds ahead, validity periods exceeding 300 seconds, duplicate signing headers, and unsupported parameters or components. Verify the digest, key and signature before reserving the nonce atomically in shared persistent storage until expiry plus 60 seconds. Reject replay or storage failure. Preserve the public URI’s path encoding and query order when constructing the signature base.

Retrieve public keys from the Multipay key-discovery endpoint. Entries contain keyid, alg, public pem, not_before and expires_at. Pin this discovery origin; never follow a key URL supplied in a request. Cache for at most five minutes and refresh once on an unknown key ID. Multipay publishes overlapping keys before rotation and retains the previous verification key throughout the transition.

Download the Node.js reference verifier. The library requires a durable atomic nonce store; its command-line mode is an offline interoperability check. For signed deliveries, verify requests before decoding JSON or processing financial instructions. Unsigned deliveries do not contain Signature, Signature-Input or Content-Digest headers. HTTPS and endpoint ownership verification remain required in either mode. Deduplicate the verified operation or event ID separately from the signature nonce.