You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dist/paystack.yaml
+38-16Lines changed: 38 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -402,6 +402,7 @@ paths:
402
402
- name: id
403
403
in: path
404
404
required: true
405
+
description: The ID of the transaction to fetch
405
406
schema:
406
407
type: integer
407
408
format: int64
@@ -527,6 +528,7 @@ paths:
527
528
- Split
528
529
summary: Create Split
529
530
operationId: split_create
531
+
description: Create a split configuration for transactions
530
532
requestBody:
531
533
content:
532
534
application/json:
@@ -551,7 +553,14 @@ paths:
551
553
- Split
552
554
summary: List Splits
553
555
operationId: split_list
556
+
description: List the transaction splits available on your integration
554
557
parameters:
558
+
- in: query
559
+
name: subaccount_code
560
+
description: Filter by subaccount code
561
+
schema:
562
+
type: string
563
+
example: ACCT_dskvlw3y3dMukmt
555
564
- name: name
556
565
description: The name of the split
557
566
in: query
@@ -584,12 +593,6 @@ paths:
584
593
schema:
585
594
type: string
586
595
format: date-time
587
-
- in: query
588
-
name: subaccount_code
589
-
description: Filter by subaccount code
590
-
schema:
591
-
type: string
592
-
example: ACCT_dskvlw3y3dMukmt
593
596
responses:
594
597
'200':
595
598
description: ''
@@ -609,12 +612,15 @@ paths:
609
612
- Split
610
613
summary: Fetch Split
611
614
operationId: split_fetch
615
+
description: Get details of a split configuration for a transaction
612
616
parameters:
613
617
- name: id
614
618
in: path
619
+
description: The ID of the split configuration to fetch
615
620
required: true
616
621
schema:
617
-
type: string
622
+
type: integer
623
+
example: 4896895
618
624
responses:
619
625
'200':
620
626
description: ''
@@ -633,6 +639,7 @@ paths:
633
639
- Split
634
640
summary: Update Split
635
641
operationId: split_update
642
+
description: Update a split configuration for transactions
636
643
requestBody:
637
644
content:
638
645
application/json:
@@ -666,6 +673,7 @@ paths:
666
673
- Split
667
674
summary: Add Subaccount to Split
668
675
operationId: split_addSubaccount
676
+
description: Add a subaccount to a split configuration, or update the share of an existing subaccount
669
677
requestBody:
670
678
content:
671
679
application/json:
@@ -678,9 +686,10 @@ paths:
678
686
- name: id
679
687
in: path
680
688
required: true
689
+
description: The ID of the split configuration to fetch
681
690
schema:
682
-
type: string
683
-
example: application/json
691
+
type: integer
692
+
example: 4896895
684
693
responses:
685
694
'200':
686
695
description: ''
@@ -698,6 +707,7 @@ paths:
698
707
- Split
699
708
summary: Remove Subaccount from split
700
709
operationId: split_removeSubaccount
710
+
description: Remove a subaccount from a split configuration
701
711
requestBody:
702
712
content:
703
713
application/json:
@@ -709,9 +719,11 @@ paths:
709
719
parameters:
710
720
- name: id
711
721
in: path
722
+
description: The ID of the split configuration to fetch
712
723
required: true
713
724
schema:
714
-
type: string
725
+
type: integer
726
+
example: 4896895
715
727
responses:
716
728
'200':
717
729
description: ''
@@ -4587,11 +4599,19 @@ components:
4587
4599
type: string
4588
4600
share:
4589
4601
description: The percentage or flat quota of the customer or partner
4590
-
type: string
4602
+
type: integer
4603
+
example:
4604
+
subaccount: ACCT_6uujpqtzmnufzkw
4605
+
share: 50
4591
4606
SplitCreate:
4592
4607
type: object
4593
4608
description: |
4594
4609
Split configuration for transactions
4610
+
required:
4611
+
- name
4612
+
- type
4613
+
- subaccounts
4614
+
- currency
4595
4615
properties:
4596
4616
name:
4597
4617
description: Name of the transaction split
@@ -4626,11 +4646,13 @@ components:
4626
4646
bearer_subaccount:
4627
4647
description: This is the subaccount code of the customer or partner that would bear the transaction charge if you specified subaccount as the bearer type
0 commit comments