digitaluapi

<back to all web services

PaymentGatewaysAdd

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
POST/payment_gateways
"use strict";
export class PaymentGatewaysAddResponse {
    /** @param {{TenantsId?:number,PaymentActionsId?:number,Name?:string,ServiceKey?:string,NotifyUrl?:string,RedirectUrl?:string,ResponseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    TenantsId;
    /** @type {number} */
    PaymentActionsId;
    /** @type {string} */
    Name;
    /** @type {string} */
    ServiceKey;
    /** @type {string} */
    NotifyUrl;
    /** @type {string} */
    RedirectUrl;
    /** @type {ResponseStatus} */
    ResponseStatus;
}
export class PaymentGatewaysAdd {
    /** @param {{TenantsId?:number,PaymentActionsId?:number,Name?:string,ServiceKey?:string,NotifyUrl?:string,RedirectUrl?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    TenantsId;
    /** @type {number} */
    PaymentActionsId;
    /** @type {string} */
    Name;
    /** @type {string} */
    ServiceKey;
    /** @type {string} */
    NotifyUrl;
    /** @type {string} */
    RedirectUrl;
}

JavaScript PaymentGatewaysAdd DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /payment_gateways HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"TenantsId":0,"PaymentActionsId":0,"Name":"String","ServiceKey":"String","NotifyUrl":"String","RedirectUrl":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"TenantsId":0,"PaymentActionsId":0,"Name":"String","ServiceKey":"String","NotifyUrl":"String","RedirectUrl":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}