{"info":{"_postman_id":"2f51d26d-baf3-4d57-b79d-718aa42f5dd0","name":"Multipay Direct Institution API","description":"Multipay Direct institution API. OAuth 2.0 and mutual TLS authentication, financial submission, transaction requery, and account verification.\n\nHTTP Message Signatures: see \/docs#signatures and download \/docs\/signer. Generate fresh headers over the exact request bytes using local private-key and token files. Never export populated Authorization\/signing headers, credentials or private keys. OAuth token requests are not signed.","schema":"https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"},"variable":[{"key":"baseUrl","value":"https:\/\/uat-conn-api.direct.multipay.cd","type":"string"},{"key":"clientId","value":"<paste-client-id-here>","type":"string"},{"key":"clientSecret","value":"<paste-client-secret-here>","type":"string"},{"key":"scope","value":"financial.create financial.read financial.reverse financial.reversal.read avs.verify","type":"string"},{"key":"accessToken","value":"","type":"string"},{"key":"transactionId","value":"","type":"string"},{"key":"reversalId","value":"","type":"string"}],"item":[{"name":"1. OAuth - Get access token","event":[{"listen":"prerequest","script":{"type":"text\/javascript","exec":["const clientId = pm.collectionVariables.get('clientId');","const clientSecret = pm.collectionVariables.get('clientSecret');","","if (!clientId || clientId.includes('<')) {","    throw new Error('Set collection variable clientId before requesting a token.');","}","","if (!clientSecret || clientSecret.includes('<')) {","    throw new Error('Set collection variable clientSecret before requesting a token.');","}"]}},{"listen":"test","script":{"type":"text\/javascript","exec":["pm.test('token response is successful', function () {","    pm.response.to.have.status(200);","});","","const json = pm.response.json();","pm.test('access token is present', function () {","    pm.expect(json.access_token).to.be.a('string').and.not.empty;","});","","pm.collectionVariables.set('accessToken', json.access_token);"]}}],"request":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"client_credentials","type":"text"},{"key":"client_id","value":"{{clientId}}","type":"text"},{"key":"client_secret","value":"{{clientSecret}}","type":"text"},{"key":"scope","value":"{{scope}}","type":"text"}]},"url":{"raw":"{{baseUrl}}\/oauth\/token","host":["{{baseUrl}}"],"path":["oauth","token"]},"description":"OAuth token request. Le body doit rester en x-www-form-urlencoded, pas en raw JSON."},"response":[]},{"name":"3. Financial - Accept pending","event":[{"listen":"test","script":{"type":"text\/javascript","exec":["pm.test('Pending accepted', () => pm.response.to.have.status(202));","if (pm.response.code === 202) pm.collectionVariables.set('transactionId', pm.response.json().id);"]}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{accessToken}}","type":"string"}]},"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json"}],"body":{"mode":"raw","raw":"{\n  \"reference_id\": \"PAY-001\",\n  \"amount\": 1000,\n  \"currency\": \"USD\",\n  \"src_account\": \"00123456\",\n  \"dest_account\": \"00987654\",\n  \"dest_bic\": \"05100\",\n  \"narration\": \"Test transfer\",\n  \"wait_for_response\": false,\n  \"src_account_type\": \"account\",\n  \"dest_account_type\": \"account\",\n  \"sign_callback\": false,\n  \"dest_bin\": \"56441310\"\n}"},"url":{"raw":"{{baseUrl}}\/api\/v1\/financial","host":["{{baseUrl}}"],"path":["api","v1","financial"]},"description":"Financial transaction request. Duplicate reference_id values within the sending institution return HTTP 409. Result callbacks are unsigned by default. Set sign_callback to true to opt in to signatures for this operation; retries retain this choice.\n\nDestination BIN is required when sending to a bank account and not required when sending to mobile money. Destination BIC is optional and does not affect routing."},"response":[]},{"name":"4. Financial - Duplicate reference","request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{accessToken}}","type":"string"}]},"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json"}],"body":{"mode":"raw","raw":"{\n  \"reference_id\": \"PAY-001\",\n  \"amount\": 1000,\n  \"currency\": \"USD\",\n  \"src_account\": \"00123456\",\n  \"dest_account\": \"00987654\",\n  \"dest_bic\": \"05100\",\n  \"narration\": \"Test transfer\",\n  \"wait_for_response\": false,\n  \"src_account_type\": \"account\",\n  \"dest_account_type\": \"account\",\n  \"sign_callback\": false,\n  \"dest_bin\": \"56441310\"\n}"},"url":{"raw":"{{baseUrl}}\/api\/v1\/financial","host":["{{baseUrl}}"],"path":["api","v1","financial"]},"description":"Financial transaction request. Duplicate reference_id values within the sending institution return HTTP 409. Result callbacks are unsigned by default. Set sign_callback to true to opt in to signatures for this operation; retries retain this choice.\n\nDestination BIN is required when sending to a bank account and not required when sending to mobile money. Destination BIC is optional and does not affect routing."},"response":[],"event":[{"listen":"test","script":{"exec":["pm.test('Duplicate rejected', () => pm.response.to.have.status(409));"],"type":"text\/javascript"}}]},{"name":"5. AVS - Account verification","event":[{"listen":"prerequest","script":{"type":"text\/javascript","exec":["const accessToken = pm.collectionVariables.get('accessToken');","","if (!accessToken) {","    throw new Error('Run \"1. OAuth - Get access token\" first. accessToken is empty.');","}"]}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{accessToken}}","type":"string"}]},"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json"}],"body":{"mode":"raw","raw":"{\n  \"src_account\": \"243814444884\",\n  \"src_account_type\": \"wallet\",\n  \"reference_id\": \"AVS000001\",\n  \"dest_account\": \"00179810601\",\n  \"currency\": \"USD\",\n  \"dest_bic\": \"00011\",\n  \"dest_account_type\": \"account\",\n  \"dest_bin\": \"56441303\"\n}"},"url":{"raw":"{{baseUrl}}\/api\/v1\/avs\/verification","host":["{{baseUrl}}"],"path":["api","v1","avs","verification"]},"description":"Account verification. Destination BIN is required for bank accounts and not required for mobile money. Destination BIC is optional metadata."},"response":[]},{"name":"Negative - Financial cannot choose institution_id","request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{accessToken}}","type":"string"}]},"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json"}],"body":{"mode":"raw","raw":"{\n  \"reference_id\": \"PAY-001\",\n  \"amount\": 1000,\n  \"currency\": \"USD\",\n  \"src_account\": \"00123456\",\n  \"dest_account\": \"00987654\",\n  \"dest_bic\": \"05100\",\n  \"narration\": \"Test transfer\",\n  \"wait_for_response\": false,\n  \"institution_id\": 999,\n  \"src_account_type\": \"account\",\n  \"dest_account_type\": \"account\",\n  \"sign_callback\": false,\n  \"dest_bin\": \"56441310\"\n}"},"url":{"raw":"{{baseUrl}}\/api\/v1\/financial","host":["{{baseUrl}}"],"path":["api","v1","financial"]},"description":"Financial transaction request. Duplicate reference_id values within the sending institution return HTTP 409. Result callbacks are unsigned by default. Set sign_callback to true to opt in to signatures for this operation; retries retain this choice.\n\nDestination BIN is required when sending to a bank account and not required when sending to mobile money. Destination BIC is optional and does not affect routing."},"response":[],"event":[{"listen":"test","script":{"exec":["pm.test('Institution cannot be chosen', () => pm.response.to.have.status(422));"],"type":"text\/javascript"}}]},{"name":"6. Financial - Requery","event":[{"listen":"test","script":{"type":"text\/javascript","exec":["pm.test('Transaction found', () => pm.response.to.have.status(200));"]}}],"request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{accessToken}}","type":"string"}]},"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json"}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{transactionId}}\"\n}"},"url":{"raw":"{{baseUrl}}\/api\/v1\/financial\/requery","host":["{{baseUrl}}"],"path":["api","v1","financial","requery"]},"description":"Financial transaction request. Duplicate reference_id values within the sending institution return HTTP 409."},"response":[]},{"name":"Full reversal","request":{"method":"POST","header":[{"key":"Content-Type","value":"application\/json"},{"key":"Accept","value":"application\/json"},{"key":"Authorization","value":"Bearer {{accessToken}}"}],"body":{"mode":"raw","raw":"{\n  \"reference_id\": \"REV-2026-0001\",\n  \"original_transaction_id\": \"{{transactionId}}\",\n  \"reason\": \"Customer request\",\n  \"wait_for_response\": false,\n  \"sign_callback\": false\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseUrl}}\/api\/v1\/financial\/reversals","host":["{{baseUrl}}"],"path":["api","v1","financial","reversals"]},"description":"Generate fresh signing headers when institution policy requires signatures. Keep credentials in a local environment. Result callbacks are unsigned by default. Set sign_callback to true to opt in to signatures for this operation; retries retain this choice."},"response":[]},{"name":"Reversal requery","request":{"method":"POST","header":[{"key":"Content-Type","value":"application\/json"},{"key":"Accept","value":"application\/json"},{"key":"Authorization","value":"Bearer {{accessToken}}"}],"body":{"mode":"raw","raw":"{\n  \"id\": \"{{reversalId}}\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseUrl}}\/api\/v1\/financial\/reversals\/requery","host":["{{baseUrl}}"],"path":["api","v1","financial","reversals","requery"]},"description":"Generate fresh signing headers when institution policy requires signatures. Keep credentials in a local environment."},"response":[]},{"name":"Multipay public signing keys","request":{"method":"GET","url":"{{baseUrl}}\/.well-known\/multipay-signing-keys"},"response":[]}]}