curl -X GET https://api.swervpay.co/api/v1/bills/validate \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json"
-d '{
"biller_id": "<BILLER_ID>",
"customer_id": "<CUSTOMER_ID>",
"category": "<CATEGORY>"
}'
import { SwervpayClient } from '@swervpaydev/sdk';
const config = {
secretKey: "<SECRET_KEY>",
businessId: "<BUSINESS_ID>"
}
const swervpay = new SwervpayClient(config);
await swervpay.bill.validate({
"biller_id": "<BILLER_ID>",
"customer_id": "<CUSTOMER_ID>",
"category": "<CATEGORY>"
});
use Swervpaydev\SDK\Swervpay;
$config = [
'business_id' => '<BUSINESS_ID>',
'secret_key' => '<SECRET_KEY>'
];
$client = new Swervpay($config);
$client->bill()->validate(array(
"biller_id" => "<BILLER_ID>",
"customer_id" => "<CUSTOMER_ID>",
"category" => "<CATEGORY>"
));
package main
import (
"context"
"fmt"
"github.com/swerv-ltd/swervpay-go"
"log"
)
func main() {
ctx := context.Background()
client := swervpay.NewSwervpayClient(&swervpay.SwervpayClientOption{
BusinessID: "<BUSINESS_ID>",
SecretKey: "<SECRET_KEY>",
})
payload := swervpay.BillValidateRequest{
BillerID: "<BILLER_ID>",
CustomerID: "<CUSTOMER_ID>",
Category: "<CATEGORY>",
}
resp, err := client.Bill.Validate(ctx, payload)
if err != nil {
log.Fatal("error", err.Error())
return
}
}
{
"message": "<string>",
"values": {}
}{
"message": "<string>",
"values": {}
}{
"message": "<string>",
"values": {}
}Bills
Validate customer
Validate bill with customer
POST
/
bills
/
validate
curl -X GET https://api.swervpay.co/api/v1/bills/validate \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json"
-d '{
"biller_id": "<BILLER_ID>",
"customer_id": "<CUSTOMER_ID>",
"category": "<CATEGORY>"
}'
import { SwervpayClient } from '@swervpaydev/sdk';
const config = {
secretKey: "<SECRET_KEY>",
businessId: "<BUSINESS_ID>"
}
const swervpay = new SwervpayClient(config);
await swervpay.bill.validate({
"biller_id": "<BILLER_ID>",
"customer_id": "<CUSTOMER_ID>",
"category": "<CATEGORY>"
});
use Swervpaydev\SDK\Swervpay;
$config = [
'business_id' => '<BUSINESS_ID>',
'secret_key' => '<SECRET_KEY>'
];
$client = new Swervpay($config);
$client->bill()->validate(array(
"biller_id" => "<BILLER_ID>",
"customer_id" => "<CUSTOMER_ID>",
"category" => "<CATEGORY>"
));
package main
import (
"context"
"fmt"
"github.com/swerv-ltd/swervpay-go"
"log"
)
func main() {
ctx := context.Background()
client := swervpay.NewSwervpayClient(&swervpay.SwervpayClientOption{
BusinessID: "<BUSINESS_ID>",
SecretKey: "<SECRET_KEY>",
})
payload := swervpay.BillValidateRequest{
BillerID: "<BILLER_ID>",
CustomerID: "<CUSTOMER_ID>",
Category: "<CATEGORY>",
}
resp, err := client.Bill.Validate(ctx, payload)
if err != nil {
log.Fatal("error", err.Error())
return
}
}
{
"message": "<string>",
"values": {}
}{
"message": "<string>",
"values": {}
}{
"message": "<string>",
"values": {}
}curl -X GET https://api.swervpay.co/api/v1/bills/validate \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json"
-d '{
"biller_id": "<BILLER_ID>",
"customer_id": "<CUSTOMER_ID>",
"category": "<CATEGORY>"
}'
import { SwervpayClient } from '@swervpaydev/sdk';
const config = {
secretKey: "<SECRET_KEY>",
businessId: "<BUSINESS_ID>"
}
const swervpay = new SwervpayClient(config);
await swervpay.bill.validate({
"biller_id": "<BILLER_ID>",
"customer_id": "<CUSTOMER_ID>",
"category": "<CATEGORY>"
});
use Swervpaydev\SDK\Swervpay;
$config = [
'business_id' => '<BUSINESS_ID>',
'secret_key' => '<SECRET_KEY>'
];
$client = new Swervpay($config);
$client->bill()->validate(array(
"biller_id" => "<BILLER_ID>",
"customer_id" => "<CUSTOMER_ID>",
"category" => "<CATEGORY>"
));
package main
import (
"context"
"fmt"
"github.com/swerv-ltd/swervpay-go"
"log"
)
func main() {
ctx := context.Background()
client := swervpay.NewSwervpayClient(&swervpay.SwervpayClientOption{
BusinessID: "<BUSINESS_ID>",
SecretKey: "<SECRET_KEY>",
})
payload := swervpay.BillValidateRequest{
BillerID: "<BILLER_ID>",
CustomerID: "<CUSTOMER_ID>",
Category: "<CATEGORY>",
}
resp, err := client.Bill.Validate(ctx, payload)
if err != nil {
log.Fatal("error", err.Error())
return
}
}
Was this page helpful?
⌘I